summaryrefslogtreecommitdiff
path: root/source4/lib/replace/libreplace.m4
diff options
context:
space:
mode:
Diffstat (limited to 'source4/lib/replace/libreplace.m4')
-rw-r--r--source4/lib/replace/libreplace.m44
1 files changed, 3 insertions, 1 deletions
diff --git a/source4/lib/replace/libreplace.m4 b/source4/lib/replace/libreplace.m4
index 8b1486c5c1..cbbc16db4e 100644
--- a/source4/lib/replace/libreplace.m4
+++ b/source4/lib/replace/libreplace.m4
@@ -27,7 +27,7 @@ AC_PROG_INSTALL
AH_VERBATIM([_XOPEN_SOURCE],
[/* Enable XOPEN on systems that have them. */
#ifndef _XOPEN_SOURCE
-# define _XOPEN_SOURCE 1
+# define _XOPEN_SOURCE 500
#endif])
AH_VERBATIM([_XOPEN_SOURCE_EXTENDED],
@@ -52,6 +52,8 @@ case "$host_os" in
;;
esac
+AC_CHECK_HEADERS([standards.h])
+
AC_C_BIGENDIAN
AC_HEADER_STDC