aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--NEWS1
-rw-r--r--fetchmail.c2
-rw-r--r--options.c2
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 <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 */
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
*/