aboutsummaryrefslogtreecommitdiff
path: root/libmudflap
diff options
context:
space:
mode:
authorDale Johannesen <dalej@apple.com>2004-08-03 14:19:26 +0000
committerFrank Ch. Eigler <fche@gcc.gnu.org>2004-08-03 14:19:26 +0000
commit029277b7c7c905897af2cd98a0bca375c876f0b1 (patch)
tree4caf0f7bcc51a72201f08b5ec6335cca1f6ac6e6 /libmudflap
parentd836edf84ffe456a95a8870651b7767566104740 (diff)
downloadgcc-029277b7c7c905897af2cd98a0bca375c876f0b1.zip
gcc-029277b7c7c905897af2cd98a0bca375c876f0b1.tar.gz
gcc-029277b7c7c905897af2cd98a0bca375c876f0b1.tar.bz2
mf-runtime.c: Conditionalize POSIX_SOURCE for Darwin.
2004-08-03 Dale Johannesen <dalej@apple.com> * mf-runtime.c: Conditionalize POSIX_SOURCE for Darwin. From-SVN: r85478
Diffstat (limited to 'libmudflap')
-rw-r--r--libmudflap/ChangeLog4
-rw-r--r--libmudflap/mf-runtime.c2
2 files changed, 5 insertions, 1 deletions
diff --git a/libmudflap/ChangeLog b/libmudflap/ChangeLog
index 7235910..dcd649f 100644
--- a/libmudflap/ChangeLog
+++ b/libmudflap/ChangeLog
@@ -1,3 +1,7 @@
+2004-08-03 Dale Johannesen <dalej@apple.com>
+
+ * mf-runtime.c: Conditionalize POSIX_SOURCE for Darwin.
+
2004-08-03 Frank Ch. Eigler <fche@redhat.com>
* mf-runtime.c (compare_uintptr_t): Remove function. Inline
diff --git a/libmudflap/mf-runtime.c b/libmudflap/mf-runtime.c
index d8ba775..f374577 100644
--- a/libmudflap/mf-runtime.c
+++ b/libmudflap/mf-runtime.c
@@ -35,7 +35,7 @@ Software Foundation, 59 Temple Place - Suite 330, Boston, MA
/* 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