svn commit: samba r25233 - in
branches/SAMBA_3_2_0/source/lib/replace: . system test
metze at samba.org
metze at samba.org
Wed Sep 19 14:57:41 GMT 2007
Author: metze
Date: 2007-09-19 14:57:40 +0000 (Wed, 19 Sep 2007)
New Revision: 25233
WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=25233
Log:
sync lib/replace with SAMBA_4_0
metze
Modified:
branches/SAMBA_3_2_0/source/lib/replace/dlfcn.m4
branches/SAMBA_3_2_0/source/lib/replace/libreplace.m4
branches/SAMBA_3_2_0/source/lib/replace/replace.h
branches/SAMBA_3_2_0/source/lib/replace/system/network.h
branches/SAMBA_3_2_0/source/lib/replace/test/testsuite.c
Changeset:
Modified: branches/SAMBA_3_2_0/source/lib/replace/dlfcn.m4
===================================================================
--- branches/SAMBA_3_2_0/source/lib/replace/dlfcn.m4 2007-09-19 14:57:20 UTC (rev 25232)
+++ branches/SAMBA_3_2_0/source/lib/replace/dlfcn.m4 2007-09-19 14:57:40 UTC (rev 25233)
@@ -12,7 +12,7 @@
[
return 0;
],[
- AC_DEFINE(DLOPEN_TAKES_UNSIGNED_FLAGS, 1, [Whether dlopen takes unsinged int flags])
+ AC_DEFINE(DLOPEN_TAKES_UNSIGNED_FLAGS, 1, [Whether dlopen takes unsigned int flags])
],[],[
#include <dlfcn.h>
])
Modified: branches/SAMBA_3_2_0/source/lib/replace/libreplace.m4
===================================================================
--- branches/SAMBA_3_2_0/source/lib/replace/libreplace.m4 2007-09-19 14:57:20 UTC (rev 25232)
+++ branches/SAMBA_3_2_0/source/lib/replace/libreplace.m4 2007-09-19 14:57:40 UTC (rev 25233)
@@ -152,6 +152,7 @@
AC_CHECK_FUNCS(vsyslog setlinebuf mktime ftruncate chsize rename)
AC_CHECK_FUNCS(waitpid strlcpy strlcat initgroups memmove strdup)
AC_CHECK_FUNCS(pread pwrite strndup strcasestr strtok_r mkdtemp socketpair)
+AC_CHECK_FUNCS(isatty)
AC_HAVE_DECL(setresuid, [#include <unistd.h>])
AC_HAVE_DECL(setresgid, [#include <unistd.h>])
AC_HAVE_DECL(errno, [#include <errno.h>])
@@ -306,17 +307,6 @@
fi
-AC_CACHE_CHECK([that the C compiler can precompile header files],samba_cv_precompiled_headers, [
- dnl Check whether the compiler can generate precompiled headers
- touch conftest.h
- if ${CC-cc} conftest.h 2> /dev/null && test -f conftest.h.gch; then
- precompiled_headers=yes
- else
- precompiled_headers=no
- fi])
-AC_SUBST(precompiled_headers)
-
-
dnl Check if the C compiler understands volatile (it should, being ANSI).
AC_CACHE_CHECK([that the C compiler understands volatile],samba_cv_volatile, [
AC_TRY_COMPILE([#include <sys/types.h>],[volatile int i = 0],
Modified: branches/SAMBA_3_2_0/source/lib/replace/replace.h
===================================================================
--- branches/SAMBA_3_2_0/source/lib/replace/replace.h 2007-09-19 14:57:20 UTC (rev 25232)
+++ branches/SAMBA_3_2_0/source/lib/replace/replace.h 2007-09-19 14:57:40 UTC (rev 25233)
@@ -375,6 +375,14 @@
#define HOST_NAME_MAX 64
#endif
+/*
+ * Some older systems seem not to have MAXHOSTNAMELEN
+ * defined.
+ */
+#ifndef MAXHOSTNAMELEN
+#define MAXHOSTNAMELEN HOST_NAME_MAX
+#endif
+
#ifndef UINT16_MAX
#define UINT16_MAX 65535
#endif
@@ -466,7 +474,7 @@
#define __STRING(x) #x
#endif
-#ifndef _STRINGSTRING
+#ifndef __STRINGSTRING
#define __STRINGSTRING(x) __STRING(x)
#endif
Modified: branches/SAMBA_3_2_0/source/lib/replace/system/network.h
===================================================================
--- branches/SAMBA_3_2_0/source/lib/replace/system/network.h 2007-09-19 14:57:20 UTC (rev 25232)
+++ branches/SAMBA_3_2_0/source/lib/replace/system/network.h 2007-09-19 14:57:40 UTC (rev 25233)
@@ -98,14 +98,6 @@
#define MSG_WAITALL 0
#endif
-/*
- * Some older systems seem not to have MAXHOSTNAMELEN
- * defined.
- */
-#ifndef MAXHOSTNAMELEN
-#define MAXHOSTNAMELEN 254
-#endif
-
#ifndef INADDR_LOOPBACK
#define INADDR_LOOPBACK 0x7f000001
#endif
Modified: branches/SAMBA_3_2_0/source/lib/replace/test/testsuite.c
===================================================================
--- branches/SAMBA_3_2_0/source/lib/replace/test/testsuite.c 2007-09-19 14:57:20 UTC (rev 25232)
+++ branches/SAMBA_3_2_0/source/lib/replace/test/testsuite.c 2007-09-19 14:57:40 UTC (rev 25233)
@@ -743,7 +743,7 @@
TEST_STRTOULL("-02000000000000000000000",8, 18446744073709551615LLU, 24, ERANGE);
TEST_STRTOULL("-2000000000000000000000",8, 18446744073709551615LLU, 23, ERANGE);
- printf("success: strtuoll\n");
+ printf("success: strtoull\n");
return true;
}
More information about the samba-cvs
mailing list