svn commit: samba r18280 - in branches/SAMBA_4_0/source: lib/replace lib/tdb libcli rpc_server/unixinfo

tridge at samba.org tridge at samba.org
Sat Sep 9 02:12:09 GMT 2006


Author: tridge
Date: 2006-09-09 02:12:09 +0000 (Sat, 09 Sep 2006)
New Revision: 18280

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

Log:

more portability tidyups, ensuring we use libreplace everywhere

Modified:
   branches/SAMBA_4_0/source/lib/replace/libreplace.m4
   branches/SAMBA_4_0/source/lib/tdb/configure.ac
   branches/SAMBA_4_0/source/libcli/libcli.h
   branches/SAMBA_4_0/source/rpc_server/unixinfo/dcesrv_unixinfo.c


Changeset:
Modified: branches/SAMBA_4_0/source/lib/replace/libreplace.m4
===================================================================
--- branches/SAMBA_4_0/source/lib/replace/libreplace.m4	2006-09-09 02:06:01 UTC (rev 18279)
+++ branches/SAMBA_4_0/source/lib/replace/libreplace.m4	2006-09-09 02:12:09 UTC (rev 18280)
@@ -1,11 +1,3 @@
-dnl needed before AC_TRY_COMPILE
-AC_ISC_POSIX
-AC_USE_SYSTEM_EXTENSIONS
-
-AC_C_INLINE
-
-LIBREPLACE_C99_STRUCT_INIT([],[])
-
 dnl find the libreplace sources. This is meant to work both for 
 dnl libreplace standalone builds, and builds of packages using libreplace
 libreplacedir=""
@@ -19,6 +11,14 @@
 LIBREPLACEOBJ="dlfcn.o getpass.o replace.o snprintf.o timegm.o"
 AC_SUBST(LIBREPLACEOBJ)
 
+dnl needed before AC_TRY_COMPILE
+AC_ISC_POSIX
+AC_USE_SYSTEM_EXTENSIONS
+AC_C_INLINE
+AC_PROG_CC
+
+LIBREPLACE_C99_STRUCT_INIT([],[])
+
 AC_SYS_LARGEFILE
 
 dnl Add #include for broken IRIX header files
@@ -30,6 +30,10 @@
 AC_C_BIGENDIAN
 AC_HEADER_STDC
 
+AC_CHECK_SIZEOF(off_t,cross)
+AC_CHECK_SIZEOF(size_t,cross)
+AC_CHECK_SIZEOF(ssize_t,cross)
+AC_FUNC_MMAP
 
 AC_CHECK_HEADERS([stdint.h inttypes.h])
 AC_CHECK_TYPE(uint_t, unsigned int)

Modified: branches/SAMBA_4_0/source/lib/tdb/configure.ac
===================================================================
--- branches/SAMBA_4_0/source/lib/tdb/configure.ac	2006-09-09 02:06:01 UTC (rev 18279)
+++ branches/SAMBA_4_0/source/lib/tdb/configure.ac	2006-09-09 02:12:09 UTC (rev 18280)
@@ -5,12 +5,6 @@
 AC_INIT(include/tdb.h)
 AC_CONFIG_SRCDIR([common/tdb.c])
 AC_CONFIG_HEADER(include/config.h)
-AC_PROG_CC
-AC_SYS_LARGEFILE
-AC_CHECK_SIZEOF(off_t,cross)
-AC_CHECK_SIZEOF(size_t,cross)
-AC_CHECK_SIZEOF(ssize_t,cross)
-AC_FUNC_MMAP
 m4_include(libreplace.m4)
 m4_include(libtdb.m4)
 AC_OUTPUT(Makefile tdb.pc)

Modified: branches/SAMBA_4_0/source/libcli/libcli.h
===================================================================
--- branches/SAMBA_4_0/source/libcli/libcli.h	2006-09-09 02:06:01 UTC (rev 18279)
+++ branches/SAMBA_4_0/source/libcli/libcli.h	2006-09-09 02:12:09 UTC (rev 18280)
@@ -22,7 +22,7 @@
 #ifndef __LIBCLI_H__
 #define __LIBCLI_H__
 
-#include <core.h>
+#include "core.h"
 #include "librpc/gen_ndr/nbt.h"
 
 /* 

Modified: branches/SAMBA_4_0/source/rpc_server/unixinfo/dcesrv_unixinfo.c
===================================================================
--- branches/SAMBA_4_0/source/rpc_server/unixinfo/dcesrv_unixinfo.c	2006-09-09 02:06:01 UTC (rev 18279)
+++ branches/SAMBA_4_0/source/rpc_server/unixinfo/dcesrv_unixinfo.c	2006-09-09 02:12:09 UTC (rev 18280)
@@ -26,10 +26,8 @@
 #include "librpc/gen_ndr/ndr_unixinfo.h"
 #include "lib/events/events.h"
 #include "dsdb/samdb/samdb.h"
+#include "system/passwd.h"
 
-#include <sys/types.h>
-#include <pwd.h>
-
 static NTSTATUS unixinfo_SidToUid(struct dcesrv_call_state *dce_call,
 				  TALLOC_CTX *mem_ctx,
 				  struct unixinfo_SidToUid *r)



More information about the samba-cvs mailing list