Fix a build problem on OS X.
authorMatthias Clasen <matthiasc@src.gnome.org>
Fri, 6 Jan 2006 05:50:40 +0000 (05:50 +0000)
committerMatthias Clasen <matthiasc@src.gnome.org>
Fri, 6 Jan 2006 05:50:40 +0000 (05:50 +0000)
ChangeLog
ChangeLog.pre-2-10
ChangeLog.pre-2-12
glib/gslice.c

index 4a6594e..1e9a342 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -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
index 4a6594e..1e9a342 100644 (file)
@@ -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
index 4a6594e..1e9a342 100644 (file)
@@ -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
index 74784d3..56ae524 100644 (file)
@@ -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>