summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorPhil Pennock <pdp@exim.org>2012-05-23 23:27:44 -0400
committerPhil Pennock <pdp@exim.org>2012-05-23 23:27:44 -0400
commitb87a6e0eedc31fdaa0d468349769b265db904aa7 (patch)
treec6965ef4656a425e0096df0b697866c7ec7cf595 /src
parent5b257915c7b51e64b90bc6d89520514e0f4d4164 (diff)
Define _ISOC99_SOURCE in exim.h
Done before os.h is pulled in so an OS can override it.
Diffstat (limited to 'src')
-rw-r--r--src/OS/os.h-Linux6
-rw-r--r--src/src/exim.h5
2 files changed, 8 insertions, 3 deletions
diff --git a/src/OS/os.h-Linux b/src/OS/os.h-Linux
index 5186ec89d..fe4eaa6c7 100644
--- a/src/OS/os.h-Linux
+++ b/src/OS/os.h-Linux
@@ -1,8 +1,8 @@
/* Exim: OS-specific C header file for Linux */
-/* Some weird variants may require invocation with C99 and features.h
-inclusion to build, with the 64-bit arithmetic. Make compiler selection
-their problem, but build anyway. */
+/* Some old systems we've received bug-reports for have a <limits.h> which
+does not pull in <features.h>. Best to just pull it in now and have done
+with the issue. */
#include <features.h>
diff --git a/src/src/exim.h b/src/src/exim.h
index 601dfed74..987aebf83 100644
--- a/src/src/exim.h
+++ b/src/src/exim.h
@@ -20,6 +20,11 @@ This call dates back at least as far as SUSv2. */
#define HAVE_SRANDOM
+/* This is primarily for the Gnu C library; we define it before os.h so that
+os.h has a chance to hurriedly undef it, Just In Case. */
+
+#define _ISOC99_SOURCE 1
+
/* First of all include the os-specific header, which might set things that
are needed by any of the other headers, including system headers. */