Fix a build problem on OS X.

This commit is contained in:
Matthias Clasen 2006-01-06 05:50:40 +00:00
parent 3439650dd1
commit 4a71102e70
4 changed files with 17 additions and 0 deletions

View 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

View 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

View 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

View 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>