This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]