From 2171992ae477864a2bcece5649f80859434be167 Mon Sep 17 00:00:00 2001 From: "Eric S. Raymond" Date: Tue, 2 Jun 1998 14:02:51 +0000 Subject: SunOS fix. svn path=/trunk/; revision=1870 --- NEWS | 1 + fetchmail.c | 2 +- options.c | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/NEWS b/NEWS index 26c3aecf..9431428e 100644 --- a/NEWS +++ b/NEWS @@ -10,6 +10,7 @@ fetchmail-4.4.9 (): * Make fetchmail 64-bit clean (thanks to John Franklin ). * Fix man-page installation (thanks to Kevin Hawkins ) +* Should build on SunOS again (__STDC__ conditions changed to STDC_HEADERS). fetchmail-4.4.8 (Tue May 26 12:30:58 EDT 1998): * Added 0.90 beta version of fetchmailconf. diff --git a/fetchmail.c b/fetchmail.c index ed3c32ff..f6f24177 100644 --- a/fetchmail.c +++ b/fetchmail.c @@ -88,7 +88,7 @@ static void termhook(); /* forward declaration of exit hook */ * and close the window entirely. But since the interval isn't normally * going to be less than one second this is not a big issue. */ -#if defined(__STDC__) +#if defined(STDC_HEADERS) static sig_atomic_t alarm_latch = FALSE; #else /* assume int can be written in one atomic operation on non ANSI-C systems */ diff --git a/options.c b/options.c index 92d24b24..ce0f1f68 100644 --- a/options.c +++ b/options.c @@ -127,7 +127,7 @@ static const struct option longoptions[] = { static int xatoi(char *s, int *errflagptr) /* do safe conversion from string to number */ { -#if defined (__STDC__) +#if defined (STDC_HEADERS) && defined (LONG_MAX) && defined (INT_MAX) /* parse and convert numbers, but also check for invalid characters in * numbers */ -- cgit v1.2.3