summaryrefslogtreecommitdiff
path: root/libexslt
diff options
context:
space:
mode:
authorPedro F. Giffuni <giffunip@tutopia.com>2012-08-16 17:16:05 +0800
committerDaniel Veillard <veillard@redhat.com>2012-08-16 17:16:05 +0800
commitbda37db361159222a9ecd05237c05b839c3f2654 (patch)
tree608b6457dc36ea9a1453fc91e4c278ce3959f777 /libexslt
parente669a8c7cefec93ee1bfaf59721aadc42e226d6e (diff)
downloadlibxslt-bda37db361159222a9ecd05237c05b839c3f2654.tar.gz
libxslt-bda37db361159222a9ecd05237c05b839c3f2654.tar.bz2
libxslt-bda37db361159222a9ecd05237c05b839c3f2654.zip
FreeBSD portability fixes
Around behaviour and compile flags for localtime and EXSLT date support
Diffstat (limited to 'libexslt')
-rw-r--r--libexslt/date.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libexslt/date.c b/libexslt/date.c
index 05b11ed3..b692bb42 100644
--- a/libexslt/date.c
+++ b/libexslt/date.c
@@ -28,7 +28,7 @@
#include "config.h"
#endif
-#if HAVE_LOCALTIME_R /* _POSIX_SOURCE required by gnu libc */
+#if defined(HAVE_LOCALTIME_R) && defined(__GLIBC__) /* _POSIX_SOURCE required by gnu libc */
#ifndef _AIX51 /* but on AIX we're not using gnu libc */
#define _POSIX_SOURCE
#endif