diff options
author | Stefan Metzmacher <metze@samba.org> | 2004-08-27 15:52:54 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 12:58:24 -0500 |
commit | 826a515ec063cf7b986ddfcfd47f2f7f09a12be5 (patch) | |
tree | 058c7fec0890237e558936ddc96f252193fc3306 /source4/lib/tdb/tools/tdbdump.c | |
parent | 3cd74a363402a88a78cc900fda1c03134a8e9945 (diff) | |
download | samba-826a515ec063cf7b986ddfcfd47f2f7f09a12be5.tar.gz samba-826a515ec063cf7b986ddfcfd47f2f7f09a12be5.tar.bz2 samba-826a515ec063cf7b986ddfcfd47f2f7f09a12be5.zip |
r2088: add tdbtorture tdbdump and tdbtest to the build
NOTE: tdbbackup and tdbtool seems to be broken...
NOTE: I also added SMB_EXT_LIB(GDBM,...)
because that is needed by tdbtest
metze
(This used to be commit e66630662d4203ccecbb20962e83dbf50a2c056f)
Diffstat (limited to 'source4/lib/tdb/tools/tdbdump.c')
-rw-r--r-- | source4/lib/tdb/tools/tdbdump.c | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/source4/lib/tdb/tools/tdbdump.c b/source4/lib/tdb/tools/tdbdump.c index 1a7128c473..0e179f8c3e 100644 --- a/source4/lib/tdb/tools/tdbdump.c +++ b/source4/lib/tdb/tools/tdbdump.c @@ -18,6 +18,7 @@ Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */ +#ifdef STANDALONE #include <errno.h> #include <stdlib.h> #include <stdio.h> @@ -33,9 +34,15 @@ #include <signal.h> #include "tdb.h" +#else + +#include "includes.h" + +#endif + static void print_data(TDB_DATA d) { - uint8_t *p = d.dptr; + unsigned char *p = d.dptr; int len = d.dsize; while (len--) { if (isprint(*p) && !strchr("\"\\", *p)) { |