diff options
author | Matthias Clasen <matthiasc@src.gnome.org> | 2006-01-06 05:50:40 +0000 |
---|---|---|
committer | Matthias Clasen <matthiasc@src.gnome.org> | 2006-01-06 05:50:40 +0000 |
commit | 4a71102e70a767fcf817ba24f91c245c97727472 (patch) | |
tree | 5216e17332c549e29496e6c5926c35124d60d3c9 | |
parent | 3439650dd16d7d559770ec504c02ee99c7d4fb2a (diff) | |
download | glib-4a71102e70a767fcf817ba24f91c245c97727472.tar.gz |
Fix a build problem on OS X.
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | ChangeLog.pre-2-10 | 5 | ||||
-rw-r--r-- | ChangeLog.pre-2-12 | 5 | ||||
-rw-r--r-- | glib/gslice.c | 2 |
4 files changed, 17 insertions, 0 deletions
@@ -1,3 +1,8 @@ +2006-01-06 Matthias Clasen <mclasen@redhat.com> + + * glib/gslice.c: Only define _XOPEN_SOURCE if we know + that we have posix_memalign(). (#323937, Bogdan Nicula) + 2006-01-05 Matthias Clasen <mclasen@redhat.com> * configure.in: Bump version diff --git a/ChangeLog.pre-2-10 b/ChangeLog.pre-2-10 index 4a6594e6a..1e9a3428c 100644 --- a/ChangeLog.pre-2-10 +++ b/ChangeLog.pre-2-10 @@ -1,3 +1,8 @@ +2006-01-06 Matthias Clasen <mclasen@redhat.com> + + * glib/gslice.c: Only define _XOPEN_SOURCE if we know + that we have posix_memalign(). (#323937, Bogdan Nicula) + 2006-01-05 Matthias Clasen <mclasen@redhat.com> * configure.in: Bump version diff --git a/ChangeLog.pre-2-12 b/ChangeLog.pre-2-12 index 4a6594e6a..1e9a3428c 100644 --- a/ChangeLog.pre-2-12 +++ b/ChangeLog.pre-2-12 @@ -1,3 +1,8 @@ +2006-01-06 Matthias Clasen <mclasen@redhat.com> + + * glib/gslice.c: Only define _XOPEN_SOURCE if we know + that we have posix_memalign(). (#323937, Bogdan Nicula) + 2006-01-05 Matthias Clasen <mclasen@redhat.com> * configure.in: Bump version diff --git a/glib/gslice.c b/glib/gslice.c index 74784d39c..56ae52460 100644 --- a/glib/gslice.c +++ b/glib/gslice.c @@ -17,7 +17,9 @@ * Boston, MA 02111-1307, USA. */ /* MT safe */ +#ifdef HAVE_POSIX_MEMALIGN #define _XOPEN_SOURCE 600 /* posix_memalign() */ +#endif #include <stdlib.h> /* posix_memalign() */ #include <string.h> #include <errno.h> |