summaryrefslogtreecommitdiffstats
path: root/source/lib
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2006-09-13 13:50:51 +0000
committerStefan Metzmacher <metze@samba.org>2006-09-13 13:50:51 +0000
commit1c797a1c69d4fa805afe84eb6ca6fc78f69623d6 (patch)
treedda48ce0bb7bec23387d84b22c2d0ce950715389 /source/lib
parent3527a870d811dec9d7adf555b2a101dce6b22ab2 (diff)
downloadsamba-1c797a1c69d4fa805afe84eb6ca6fc78f69623d6.tar.gz
samba-1c797a1c69d4fa805afe84eb6ca6fc78f69623d6.tar.xz
samba-1c797a1c69d4fa805afe84eb6ca6fc78f69623d6.zip
r18472: - use STDC_HEADERS for stdlib.h and stddef.h as autoconf does
- AC_HEADERS_STDC is not explicit needed metze
Diffstat (limited to 'source/lib')
-rw-r--r--source/lib/replace/libreplace.m47
-rw-r--r--source/lib/replace/replace.h3
2 files changed, 4 insertions, 6 deletions
diff --git a/source/lib/replace/libreplace.m4 b/source/lib/replace/libreplace.m4
index 2fe48d4e220..a96890ba549 100644
--- a/source/lib/replace/libreplace.m4
+++ b/source/lib/replace/libreplace.m4
@@ -24,6 +24,7 @@ AC_ISC_POSIX
AC_USE_SYSTEM_EXTENSIONS
AC_PROG_CC_C99
AC_C_INLINE
+AC_C_BIGENDIAN
AC_PROG_INSTALL
AH_VERBATIM([_XOPEN_SOURCE_EXTENDED],
@@ -50,10 +51,6 @@ esac
AC_CHECK_HEADERS([standards.h])
-AC_C_BIGENDIAN
-AC_HEADER_STDC
-
-
AC_CHECK_SIZEOF(off_t,cross)
AC_CHECK_SIZEOF(size_t,cross)
AC_CHECK_SIZEOF(ssize_t,cross)
@@ -86,7 +83,7 @@ AC_FUNC_MEMCMP
AC_CHECK_FUNCS(pipe strftime srandom random srand rand usleep setbuffer lstat getpgrp)
-AC_CHECK_HEADERS(stdbool.h stddef.h sys/select.h)
+AC_CHECK_HEADERS(stdbool.h sys/select.h)
AC_CHECK_HEADERS(sys/epoll.h)
AC_CHECK_FUNCS(epoll_create)
diff --git a/source/lib/replace/replace.h b/source/lib/replace/replace.h
index e35f1da44e3..ca315131f11 100644
--- a/source/lib/replace/replace.h
+++ b/source/lib/replace/replace.h
@@ -72,7 +72,8 @@
#include <sys/types.h>
#endif
-#ifdef HAVE_STDDEF_H
+#if STDC_HEADERS
+#include <stdlib.h>
#include <stddef.h>
#endif