summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorPhil Pennock <pdp@exim.org>2012-05-23 23:43:20 -0400
committerPhil Pennock <pdp@exim.org>2012-05-23 23:43:20 -0400
commit57eb9e91fe084ad434fcc286f0135e89b658c213 (patch)
tree94ec22d9f0429b37cfdeb441205438eb3ba5d806 /src
parentb87a6e0eedc31fdaa0d468349769b265db904aa7 (diff)
_ISOC99_SOURCE -> _GNU_SOURCEexim-4_80_RC5
_ISOC99_SOURCE broke build on Linux (Ubuntu 11.10) because it broke <resolv.h>, <arpa/nameser.h>, etc. Their u_char and u_int usage relies upon BSD source being enabled too. So use _GNU_SOURCE.
Diffstat (limited to 'src')
-rw-r--r--src/src/exim.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/src/exim.h b/src/src/exim.h
index 987aebf83..c18c9aef3 100644
--- a/src/src/exim.h
+++ b/src/src/exim.h
@@ -21,9 +21,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. */
+os.h has a chance to hurriedly undef it, Just In Case. We need C99 for some
+64-bit math support, and defining _ISOC99_SOURCE breaks <resolv.h> and friends.
+*/
-#define _ISOC99_SOURCE 1
+#define _GNU_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. */