aboutsummaryrefslogtreecommitdiff
path: root/libmudflap
diff options
context:
space:
mode:
authorAndrew Pinski <apinski@apple.com>2003-12-07 07:58:22 +0000
committerAndrew Pinski <apinski@apple.com>2003-12-07 07:58:22 +0000
commit5a10ca09c51f549fa96238e58a65da364d89e4ce (patch)
treecf9baab6e6bc2187d6f33e5a5dd3b9f3ebbff444 /libmudflap
parentb26014fb4c491f988ab419982df997fadaef43c2 (diff)
+2003-12-06 Andrew Pinski <apinski@apple.com>
+ + partial PR libmudflap/12670 + * mf-hooks1.c: Respect Darwin checks. Conditionalize POSIX_SOURCE. + * mf-hooks2.c: Likewise. + * mf-hooks3.c: Likewise. + git-svn-id: https://gcc.gnu.org/svn/gcc/branches/tree-ssa-20020619-branch@74383 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libmudflap')
-rw-r--r--libmudflap/ChangeLog7
-rw-r--r--libmudflap/mf-hooks1.c2
-rw-r--r--libmudflap/mf-hooks2.c2
-rw-r--r--libmudflap/mf-hooks3.c2
4 files changed, 10 insertions, 3 deletions
diff --git a/libmudflap/ChangeLog b/libmudflap/ChangeLog
index 67977a26c20..9875b0f6698 100644
--- a/libmudflap/ChangeLog
+++ b/libmudflap/ChangeLog
@@ -1,3 +1,10 @@
+2003-12-06 Andrew Pinski <apinski@apple.com>
+
+ partial PR libmudflap/12670
+ * mf-hooks1.c: Respect Darwin checks. Conditionalize POSIX_SOURCE.
+ * mf-hooks2.c: Likewise.
+ * mf-hooks3.c: Likewise.
+
2003-11-19 Frank Ch. Eigler <fche@redhat.com>
libstdc++/11696
diff --git a/libmudflap/mf-hooks1.c b/libmudflap/mf-hooks1.c
index b12aafa0459..ce1abb9ea3e 100644
--- a/libmudflap/mf-hooks1.c
+++ b/libmudflap/mf-hooks1.c
@@ -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
diff --git a/libmudflap/mf-hooks2.c b/libmudflap/mf-hooks2.c
index 41de1e267e2..11d5f23d27e 100644
--- a/libmudflap/mf-hooks2.c
+++ b/libmudflap/mf-hooks2.c
@@ -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
diff --git a/libmudflap/mf-hooks3.c b/libmudflap/mf-hooks3.c
index 9a6dd6e999c..75fde66dcc6 100644
--- a/libmudflap/mf-hooks3.c
+++ b/libmudflap/mf-hooks3.c
@@ -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