]> git.ozlabs.org Git - ccan/blobdiff - ccan/tdb/tdb_private.h
ccanize tdb further, and add simple test.
[ccan] / ccan / tdb / tdb_private.h
index 9942e503da7e4298535b3cf7f87b67d7cffaab94..c460af4e8dd87d0219dab7e5c1a88089488846fd 100644 (file)
@@ -1,3 +1,5 @@
+#ifndef TDB_PRIVATE_H
+#define TDB_PRIVATE_H
  /* 
    Unix SMB/CIFS implementation.
 
  /* 
    Unix SMB/CIFS implementation.
 
 #include <string.h>
 #include <errno.h>
 #include <stdio.h>
 #include <string.h>
 #include <errno.h>
 #include <stdio.h>
+#include <utime.h>
+#include "config.h"
 #endif
 #include "tdb.h"
 
 #endif
 #include "tdb.h"
 
-#ifndef HAVE_GETPAGESIZE
+#if HAVE_GETPAGESIZE
 #define getpagesize() 0x2000
 #endif
 
 #define getpagesize() 0x2000
 #endif
 
@@ -225,3 +229,4 @@ int tdb_rec_free_read(struct tdb_context *tdb, tdb_off_t off,
                      struct list_struct *rec);
 
 
                      struct list_struct *rec);
 
 
+#endif