diff options
Diffstat (limited to 'source/lib')
-rw-r--r-- | source/lib/replace/libreplace.m4 | 4 | ||||
-rw-r--r-- | source/lib/replace/replace.h | 4 |
2 files changed, 7 insertions, 1 deletions
diff --git a/source/lib/replace/libreplace.m4 b/source/lib/replace/libreplace.m4 index 8b1486c5c1f..cbbc16db4e6 100644 --- a/source/lib/replace/libreplace.m4 +++ b/source/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/source/lib/replace/replace.h b/source/lib/replace/replace.h index 7664c51a5da..70fd89e3b9a 100644 --- a/source/lib/replace/replace.h +++ b/source/lib/replace/replace.h @@ -30,6 +30,10 @@ #include "config.h" +#ifdef HAVE_STANDARDS_H +#include <standards.h> +#endif + #include <stdio.h> #include <stdlib.h> #include <stdarg.h> |