svn commit: samba r18278 - in branches/SAMBA_4_0/source: include
lib/replace
tridge at samba.org
tridge at samba.org
Sat Sep 9 01:49:38 GMT 2006
Author: tridge
Date: 2006-09-09 01:49:38 +0000 (Sat, 09 Sep 2006)
New Revision: 18278
WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=18278
Log:
move more header checks and _GNU_SOURCE into libreplace
Modified:
branches/SAMBA_4_0/source/include/includes.h
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/include/includes.h
===================================================================
--- branches/SAMBA_4_0/source/include/includes.h 2006-09-09 01:21:10 UTC (rev 18277)
+++ branches/SAMBA_4_0/source/include/includes.h 2006-09-09 01:49:38 UTC (rev 18278)
@@ -64,25 +64,13 @@
#endif
#endif
-#define _GNU_SOURCE /* Use GNU extensions */
-
/* mark smb_panic() as noreturn, so static analysers know that it is
used like abort */
_PUBLIC_ void smb_panic(const char *why) NORETURN_ATTRIBUTE;
-#include <sys/types.h>
-#include <stdio.h>
-#include <stdlib.h>
-#include <stddef.h>
-#include <sys/time.h>
+#include "system/time.h"
+#include "system/wait.h"
-#ifdef HAVE_STRING_H
-#include <string.h>
-#endif
-
-#include <signal.h>
-#include <errno.h>
-
#define _PRINTF_ATTRIBUTE(a1, a2) PRINTF_ATTRIBUTE(a1, a2)
/* Lists, trees, caching, database... */
Modified: branches/SAMBA_4_0/source/lib/replace/libreplace.m4
===================================================================
--- branches/SAMBA_4_0/source/lib/replace/libreplace.m4 2006-09-09 01:21:10 UTC (rev 18277)
+++ branches/SAMBA_4_0/source/lib/replace/libreplace.m4 2006-09-09 01:49:38 UTC (rev 18278)
@@ -1,5 +1,6 @@
dnl needed before AC_TRY_COMPILE
AC_ISC_POSIX
+AC_USE_SYSTEM_EXTENSIONS
AC_C_INLINE
@@ -57,7 +58,7 @@
AC_CHECK_FUNCS(pipe strftime srandom random srand rand usleep setbuffer)
-AC_CHECK_HEADERS(stdbool.h)
+AC_CHECK_HEADERS(stdbool.h stddef.h)
AC_CHECK_TYPE(bool,
[AC_DEFINE(HAVE_BOOL, 1, [Whether the bool type is available])],,
Modified: branches/SAMBA_4_0/source/lib/replace/replace.h
===================================================================
--- branches/SAMBA_4_0/source/lib/replace/replace.h 2006-09-09 01:21:10 UTC (rev 18277)
+++ branches/SAMBA_4_0/source/lib/replace/replace.h 2006-09-09 01:49:38 UTC (rev 18278)
@@ -61,6 +61,14 @@
#include <strings.h>
#endif
+#ifdef HAVE_SYS_TYPES_H
+#include <sys/types.h>
+#endif
+
+#ifdef HAVE_STDDEF_H
+#include <stddef.h>
+#endif
+
#ifndef HAVE_STRERROR
extern char *sys_errlist[];
#define strerror(i) sys_errlist[i]
More information about the samba-cvs
mailing list