diff options
author | Andrew Tridgell <tridge@samba.org> | 2005-09-24 02:31:43 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 13:38:48 -0500 |
commit | 036b27c8e4f8bdd61049c5f3b78573937badbdd6 (patch) | |
tree | 12b07331d0e8c57727d790f31637dafa709f037d /source4/lib/tdb | |
parent | 4be0ae794e4af2354d678fddd7bf1e822ffa9148 (diff) | |
download | samba-036b27c8e4f8bdd61049c5f3b78573937badbdd6.tar.gz samba-036b27c8e4f8bdd61049c5f3b78573937badbdd6.tar.bz2 samba-036b27c8e4f8bdd61049c5f3b78573937badbdd6.zip |
r10459: fixed some portability problems
(This used to be commit 03942dd54b31e7a4cf9c6270b26ccf68a3234b40)
Diffstat (limited to 'source4/lib/tdb')
-rw-r--r-- | source4/lib/tdb/common/tdb_private.h | 2 | ||||
-rw-r--r-- | source4/lib/tdb/config.m4 | 1 | ||||
-rw-r--r-- | source4/lib/tdb/tools/tdbtorture.c | 3 |
3 files changed, 6 insertions, 0 deletions
diff --git a/source4/lib/tdb/common/tdb_private.h b/source4/lib/tdb/common/tdb_private.h index ba0a379e7f..9eeaea4cb0 100644 --- a/source4/lib/tdb/common/tdb_private.h +++ b/source4/lib/tdb/common/tdb_private.h @@ -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> diff --git a/source4/lib/tdb/config.m4 b/source4/lib/tdb/config.m4 index d45bbe4383..2ebd29993d 100644 --- a/source4/lib/tdb/config.m4 +++ b/source4/lib/tdb/config.m4 @@ -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) diff --git a/source4/lib/tdb/tools/tdbtorture.c b/source4/lib/tdb/tools/tdbtorture.c index c0076a92d4..591fdab2f7 100644 --- a/source4/lib/tdb/tools/tdbtorture.c +++ b/source4/lib/tdb/tools/tdbtorture.c @@ -30,7 +30,10 @@ #endif +#ifdef HAVE_GETOPT_H #include <getopt.h> +#endif + #define REOPEN_PROB 30 #define DELETE_PROB 8 |