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]

[PATCH] [Libmudflap] [Committed] fix darwin7.0


I applied the following patch which was approved a long time ago (back in August)
by Gerald Pfeifer.


There is one more fix for the PR libmudflap/12670 to be fixed all the way,
a configure test.


ChangeLog:
	partial PR libmudflap/12670
	* mf-hooks1.c: Respect Darwin checks.  Conditionalize POSIX_SOURCE.
	* mf-hooks2.c: Likewise.
	* mf-hooks3.c: Likewise.

Patch:
Index: mf-hooks1.c
===================================================================
RCS file: /cvs/gcc/gcc/libmudflap/Attic/mf-hooks1.c,v
retrieving revision 1.1.2.4
diff -u -p -r1.1.2.4 mf-hooks1.c
--- mf-hooks1.c 4 Nov 2003 18:13:28 -0000       1.1.2.4
+++ mf-hooks1.c 7 Dec 2003 07:57:58 -0000
@@ -11,7 +11,7 @@ XXX: libgcc license?

 /* 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: mf-hooks2.c
===================================================================
RCS file: /cvs/gcc/gcc/libmudflap/Attic/mf-hooks2.c,v
retrieving revision 1.1.2.5
diff -u -p -r1.1.2.5 mf-hooks2.c
--- mf-hooks2.c 20 Nov 2003 21:21:45 -0000      1.1.2.5
+++ mf-hooks2.c 7 Dec 2003 07:57:58 -0000
@@ -11,7 +11,7 @@ XXX: libgcc license?

 /* 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: mf-hooks3.c
===================================================================
RCS file: /cvs/gcc/gcc/libmudflap/Attic/mf-hooks3.c,v
retrieving revision 1.1.2.4
diff -u -p -r1.1.2.4 mf-hooks3.c
--- mf-hooks3.c 4 Nov 2003 18:13:28 -0000       1.1.2.4
+++ mf-hooks3.c 7 Dec 2003 07:57:58 -0000
@@ -11,7 +11,7 @@ XXX: libgcc license?

 /* 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]