From 5667b80ba6b9833f14fb8846ec9cddc80a420aff Mon Sep 17 00:00:00 2001 From: Charles Kerr Date: Tue, 23 Feb 2010 06:15:47 +0000 Subject: [PATCH] (trunk libT) try to make the posix_memalign() #includes work right on Darwin too --- libtransmission/utils.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/libtransmission/utils.c b/libtransmission/utils.c index 8cbda3e61..ced4e1597 100644 --- a/libtransmission/utils.c +++ b/libtransmission/utils.c @@ -21,7 +21,9 @@ #endif #if defined(HAVE_POSIX_MEMALIGN) || defined(HAVE_VALLOC) - #define _XOPEN_SOURCE 600 /* pick posix_memalign and valloc declarations */ + #if !defined(SYS_DARWIN) + #define _XOPEN_SOURCE 600 /* pick posix_memalign and valloc declarations */ + #endif #endif #include