]> arthur.barton.de Git - netatalk.git/blobdiff - libatalk/tdb/tdb_private.h
Active Directory LDAP queries for ACL support
[netatalk.git] / libatalk / tdb / tdb_private.h
index 77951c62da583792d0c93ed8fe8b796b0dab748e..de5dd02b141f3ca5cae4115938f8195aaeea4fc1 100644 (file)
    License along with this library; if not, see <http://www.gnu.org/licenses/>.
 */
 
-#if 0
-#include "replace.h"
-#include "system/filesys.h"
-#include "system/time.h"
-#include "system/shmem.h"
-#include "system/select.h"
-#include "system/wait.h"
-#include "tdb.h"
-#endif
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif /* HAVE_CONFIG_H */
 
 #include <unistd.h>
 #include <stdint.h>
@@ -50,6 +44,7 @@
 #include <stdio.h>
 #include <errno.h>
 #include <sys/param.h>
+#include <stddef.h>
 
 #ifndef __STRING
 #define __STRING(x)    #x
@@ -67,6 +62,7 @@
 #define __location__ __FILE__ ":" __LINESTR__
 #endif
 
+#include <atalk/util.h>
 #include "atalk/tdb.h"
 
 /* #define TDB_TRACE 1 */
 typedef uint32_t tdb_len_t;
 typedef uint32_t tdb_off_t;
 
-#ifndef offsetof
-#define offsetof(t,f) ((unsigned int)&((t *)0)->f)
-#endif
-
 #define TDB_MAGIC_FOOD "TDB file\n"
 #define TDB_VERSION (0x26011967 + 6)
 #define TDB_MAGIC (0x26011999U)