diff options
author | Eric S. Raymond <esr@thyrsus.com> | 1998-06-02 14:02:51 +0000 |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 1998-06-02 14:02:51 +0000 |
commit | 2171992ae477864a2bcece5649f80859434be167 (patch) | |
tree | 977693239cc165aa13aac38bbef59a0adb78d783 | |
parent | 84d801a3e852add04ed7e9e69101ce0a8db1f8be (diff) | |
download | fetchmail-2171992ae477864a2bcece5649f80859434be167.tar.gz fetchmail-2171992ae477864a2bcece5649f80859434be167.tar.bz2 fetchmail-2171992ae477864a2bcece5649f80859434be167.zip |
SunOS fix.
svn path=/trunk/; revision=1870
-rw-r--r-- | NEWS | 1 | ||||
-rw-r--r-- | fetchmail.c | 2 | ||||
-rw-r--r-- | options.c | 2 |
3 files changed, 3 insertions, 2 deletions
@@ -10,6 +10,7 @@ fetchmail-4.4.9 (): * Make fetchmail 64-bit clean (thanks to John Franklin <john@iptimaging.com>). * Fix man-page installation (thanks to Kevin Hawkins <khawkins@ncsa.uiuc.edu>) +* 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 */ @@ -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 */ |