svn commit: samba r10471 - in branches/SAMBA_4_0/source/lib/tdb: . common tools

tridge at samba.org tridge at samba.org
Sat Sep 24 07:30:21 GMT 2005


Author: tridge
Date: 2005-09-24 07:30:20 +0000 (Sat, 24 Sep 2005)
New Revision: 10471

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

Log:
stratos doesn't have getpagesize(), so guess 8k on systems that don't
have it. Overestimating is harmless.

Modified:
   branches/SAMBA_4_0/source/lib/tdb/common/tdb_private.h
   branches/SAMBA_4_0/source/lib/tdb/config.m4
   branches/SAMBA_4_0/source/lib/tdb/tools/tdbtorture.c


Changeset:
Modified: branches/SAMBA_4_0/source/lib/tdb/common/tdb_private.h
===================================================================
--- branches/SAMBA_4_0/source/lib/tdb/common/tdb_private.h	2005-09-24 07:07:22 UTC (rev 10470)
+++ branches/SAMBA_4_0/source/lib/tdb/common/tdb_private.h	2005-09-24 07:30:20 UTC (rev 10471)
@@ -65,6 +65,10 @@
 #define u32 unsigned
 #endif
 
+#ifndef HAVE_GETPAGESIZE
+#define getpagesize() 0x2000
+#endif
+
 typedef u32 tdb_len_t;
 typedef u32 tdb_off_t;
 

Modified: branches/SAMBA_4_0/source/lib/tdb/config.m4
===================================================================
--- branches/SAMBA_4_0/source/lib/tdb/config.m4	2005-09-24 07:07:22 UTC (rev 10470)
+++ branches/SAMBA_4_0/source/lib/tdb/config.m4	2005-09-24 07:30:20 UTC (rev 10471)
@@ -1,4 +1,4 @@
-AC_CHECK_FUNCS(mmap pread pwrite)
+AC_CHECK_FUNCS(mmap pread pwrite getpagesize)
 AC_CHECK_HEADERS(getopt.h)
 
 AC_HAVE_DECL(pread, [#include <unistd.h>])

Modified: branches/SAMBA_4_0/source/lib/tdb/tools/tdbtorture.c
===================================================================
--- branches/SAMBA_4_0/source/lib/tdb/tools/tdbtorture.c	2005-09-24 07:07:22 UTC (rev 10470)
+++ branches/SAMBA_4_0/source/lib/tdb/tools/tdbtorture.c	2005-09-24 07:30:20 UTC (rev 10471)
@@ -319,7 +319,7 @@
 			if (pids[j] == pid) break;
 		}
 		if (j == num_procs) {
-			printf("unknown child %d exited!?\n", pid);
+			printf("unknown child %d exited!?\n", (int)pid);
 			exit(1);
 		}
 		if (WEXITSTATUS(status) != 0) {



More information about the samba-cvs mailing list