diff options
-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 |