From 27964734a643b814f89b9521ab3b9a1b20787049 Mon Sep 17 00:00:00 2001 From: Stefan Metzmacher Date: Mon, 11 Sep 2006 14:08:51 +0000 Subject: r18383: ok we need _XOPEN_SOURCE 500 and include standards.h on Tru64 to get MAP_FAILED metze (This used to be commit 0f48c8ad7c066ba33cb8d4491083e15b24c5046e) --- source4/lib/replace/libreplace.m4 | 4 +++- source4/lib/replace/replace.h | 4 ++++ 2 files changed, 7 insertions(+), 1 deletion(-) (limited to 'source4/lib/replace') 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 diff --git a/source4/lib/replace/replace.h b/source4/lib/replace/replace.h index 7664c51a5d..70fd89e3b9 100644 --- a/source4/lib/replace/replace.h +++ b/source4/lib/replace/replace.h @@ -30,6 +30,10 @@ #include "config.h" +#ifdef HAVE_STANDARDS_H +#include +#endif + #include #include #include -- cgit