svn commit: samba r18472 - in branches/SAMBA_4_0/source/lib/replace: .

metze at samba.org metze at samba.org
Wed Sep 13 13:50:52 GMT 2006


Author: metze
Date: 2006-09-13 13:50:51 +0000 (Wed, 13 Sep 2006)
New Revision: 18472

WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=18472

Log:
- use STDC_HEADERS for stdlib.h and stddef.h as autoconf does
- AC_HEADERS_STDC is not explicit needed

metze
Modified:
   branches/SAMBA_4_0/source/lib/replace/libreplace.m4
   branches/SAMBA_4_0/source/lib/replace/replace.h


Changeset:
Modified: branches/SAMBA_4_0/source/lib/replace/libreplace.m4
===================================================================
--- branches/SAMBA_4_0/source/lib/replace/libreplace.m4	2006-09-13 13:49:17 UTC (rev 18471)
+++ branches/SAMBA_4_0/source/lib/replace/libreplace.m4	2006-09-13 13:50:51 UTC (rev 18472)
@@ -24,6 +24,7 @@
 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 @@
 
 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_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)

Modified: branches/SAMBA_4_0/source/lib/replace/replace.h
===================================================================
--- branches/SAMBA_4_0/source/lib/replace/replace.h	2006-09-13 13:49:17 UTC (rev 18471)
+++ branches/SAMBA_4_0/source/lib/replace/replace.h	2006-09-13 13:50:51 UTC (rev 18472)
@@ -72,7 +72,8 @@
 #include <sys/types.h>
 #endif
 
-#ifdef HAVE_STDDEF_H
+#if STDC_HEADERS
+#include <stdlib.h>
 #include <stddef.h>
 #endif
 



More information about the samba-cvs mailing list