summaryrefslogtreecommitdiff
path: root/lib/tdb/common
diff options
context:
space:
mode:
authorRusty Russell <rusty@rustcorp.com.au>2012-02-14 04:04:43 +1030
committerRusty Russell <rusty@rustcorp.com.au>2012-02-14 04:04:43 +1030
commit390b9a2dd8447ecd16e3957c02fa886781797733 (patch)
treefcb0e1e4a8e9f823e07772b68c354d912214bec9 /lib/tdb/common
parentad2a2c4e3a7ee402755c2b83d2af6dccd256fa93 (diff)
downloadsamba-390b9a2dd8447ecd16e3957c02fa886781797733.tar.gz
samba-390b9a2dd8447ecd16e3957c02fa886781797733.tar.bz2
samba-390b9a2dd8447ecd16e3957c02fa886781797733.zip
tdb: make tdb_private.h idempotent.
The most convenient way to write unit tests in C is to directly #include the C files (CCAN uses this, for example). That works quite well, but it means that tdb_private.h now needs to be protected against multiple inclusions. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Diffstat (limited to 'lib/tdb/common')
-rw-r--r--lib/tdb/common/tdb_private.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/tdb/common/tdb_private.h b/lib/tdb/common/tdb_private.h
index 4fc7381aa0..9913284f3c 100644
--- a/lib/tdb/common/tdb_private.h
+++ b/lib/tdb/common/tdb_private.h
@@ -1,3 +1,5 @@
+#ifndef TDB_PRIVATE_H
+#define TDB_PRIVATE_H
/*
Unix SMB/CIFS implementation.
@@ -280,3 +282,4 @@ void tdb_header_hash(struct tdb_context *tdb,
uint32_t *magic1_hash, uint32_t *magic2_hash);
unsigned int tdb_old_hash(TDB_DATA *key);
size_t tdb_dead_space(struct tdb_context *tdb, tdb_off_t off);
+#endif /* TDB_PRIVATE_H */