r18280: more portability tidyups, ensuring we use libreplace everywhere
authorAndrew Tridgell <tridge@samba.org>
Sat, 9 Sep 2006 02:12:09 +0000 (02:12 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 19:18:00 +0000 (14:18 -0500)
(This used to be commit 4860d0256547b33709cdc109bdf7bb0310c2a5b6)

source4/lib/replace/libreplace.m4
source4/lib/tdb/configure.ac
source4/libcli/libcli.h
source4/rpc_server/unixinfo/dcesrv_unixinfo.c

index 2fe58bf1e88473df6ae9a63cbaebb0694501715d..6a24c053e3e45675413a76041aa6ae631d862934 100644 (file)
@@ -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 @@ done
 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 @@ esac
 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)
index 09cc353e39b636a5b87980c9caaa085a9235e2ca..9da1d85ae25554cc837b1045c6b21fdce1f5076e 100644 (file)
@@ -5,12 +5,6 @@ AC_DEFUN([SMB_ENABLE], [echo -n ""])
 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)
index c104fcf80eb704e7bf87bab23c1cec5e33000a84..aee22e26935e93e3eb1ea578d6e3addf500297e2 100644 (file)
@@ -22,7 +22,7 @@
 #ifndef __LIBCLI_H__
 #define __LIBCLI_H__
 
-#include <core.h>
+#include "core.h"
 #include "librpc/gen_ndr/nbt.h"
 
 /* 
index 1f682a6d5a7d8a44c37e44082b4b95b68a9d0a4c..ab7a61c64e41b0c77714b6b77f7cb5236a061992 100644 (file)
@@ -26,9 +26,7 @@
 #include "librpc/gen_ndr/ndr_unixinfo.h"
 #include "lib/events/events.h"
 #include "dsdb/samdb/samdb.h"
-
-#include <sys/types.h>
-#include <pwd.h>
+#include "system/passwd.h"
 
 static NTSTATUS unixinfo_SidToUid(struct dcesrv_call_state *dce_call,
                                  TALLOC_CTX *mem_ctx,