This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Allow mudflap to build on MacOS
- From: Dale Johannesen <dalej at apple dot com>
- To: "gcc-patches at gcc dot gnu dot org Patches" <gcc-patches at gcc dot gnu dot org>
- Cc: Dale Johannesen <dalej at apple dot com>
- Date: Wed, 28 Jul 2004 10:53:20 -0700
- Subject: Allow mudflap to build on MacOS
Analogous to existing code in mf-hooks*.c; somebody missed this one.
Bootstrapped on Darwin.
2004-07-28 Dale Johannesen <dalej@apple.com>
* mf-runtime.c: Conditionalize POSIX_SOURCE for Darwin.
Index: mf-runtime.c
===================================================================
RCS file: /cvs/gcc/gcc/libmudflap/mf-runtime.c,v
retrieving revision 1.14
diff -u -d -b -w -r1.14 mf-runtime.c
--- mf-runtime.c 27 Jul 2004 19:41:20 -0000 1.14
+++ mf-runtime.c 28 Jul 2004 17:23:38 -0000
@@ -35,7 +35,7 @@
/* These attempt to coax various unix flavours to declare all our
needed tidbits in the system headers. */
-#if !defined(__FreeBSD__)
+#if !defined(__FreeBSD__) && !defined(__APPLE__)
#define _POSIX_SOURCE
#endif /* Some BSDs break <sys/socket.h> if this is defined. */
#define _GNU_SOURCE