Author: tridge Date: 2005-09-24 02:31:43 +0000 (Sat, 24 Sep 2005) New Revision: 10459
WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=10459 Log: fixed some portability problems 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-23 19:51:44 UTC (rev 10458) +++ branches/SAMBA_4_0/source/lib/tdb/common/tdb_private.h 2005-09-24 02:31:43 UTC (rev 10459) @@ -33,7 +33,9 @@ #include <stdlib.h> #include <stdio.h> +#ifdef HAVE_STDINT_H #include <stdint.h> +#endif #include <fcntl.h> #include <unistd.h> #include <string.h> Modified: branches/SAMBA_4_0/source/lib/tdb/config.m4 =================================================================== --- branches/SAMBA_4_0/source/lib/tdb/config.m4 2005-09-23 19:51:44 UTC (rev 10458) +++ branches/SAMBA_4_0/source/lib/tdb/config.m4 2005-09-24 02:31:43 UTC (rev 10459) @@ -1,4 +1,5 @@ AC_CHECK_FUNCS(mmap pread pwrite) +AC_CHECK_HEADERS(getopt.h) if test x"$experimental" = x"yes"; then SMB_LIBRARY_ENABLE(libtdb,YES) Modified: branches/SAMBA_4_0/source/lib/tdb/tools/tdbtorture.c =================================================================== --- branches/SAMBA_4_0/source/lib/tdb/tools/tdbtorture.c 2005-09-23 19:51:44 UTC (rev 10458) +++ branches/SAMBA_4_0/source/lib/tdb/tools/tdbtorture.c 2005-09-24 02:31:43 UTC (rev 10459) @@ -30,8 +30,11 @@ #endif +#ifdef HAVE_GETOPT_H #include <getopt.h> +#endif + #define REOPEN_PROB 30 #define DELETE_PROB 8 #define STORE_PROB 4
