]> Pileus Git - ~andy/fetchmail/commitdiff
SunOS fix.
authorEric S. Raymond <esr@thyrsus.com>
Tue, 2 Jun 1998 14:02:51 +0000 (14:02 -0000)
committerEric S. Raymond <esr@thyrsus.com>
Tue, 2 Jun 1998 14:02:51 +0000 (14:02 -0000)
svn path=/trunk/; revision=1870

NEWS
fetchmail.c
options.c

diff --git a/NEWS b/NEWS
index 26c3aecf41d6d4817ac29cf8ecb8306c9b538aad..9431428e5773f55fa9092ac858c3234a6e5d72f0 100644 (file)
--- 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.
index ed3c32ff66d2d9c7c2143d2ec84e29a2cdf80755..f6f2417789fa5e4ba6a78ed6f505cd4ea9b5cda1 100644 (file)
@@ -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 */
index 92d24b2460c38bd7ceef7a2c60e1164c49b7b901..ce0f1f6851a3e5d4e3d003290b4508502d5177d2 100644 (file)
--- 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
      */