s3: only include tdb headers where needed.
[nivanova/samba-autobuild/.git] / source3 / smbd / statcache.c
index 5c74b928550312956dd1ed61318d8c95b033d7bd..e2ccc74a87ae2f11aee30855ae68267c0dd20b37 100644 (file)
@@ -25,6 +25,7 @@
 #include "smbd/smbd.h"
 #include "messages.h"
 #include "smbprofile.h"
+#include <tdb.h>
 
 /****************************************************************************
  Stat cache code used in unix_convert.
@@ -376,7 +377,7 @@ void stat_cache_delete(const char *name)
  JRA. Use a djb-algorithm hash for speed.
 ***************************************************************/
 
-unsigned int fast_string_hash(TDB_DATA *key)
+unsigned int fast_string_hash(struct TDB_DATA *key)
 {
         unsigned int n = 0;
         const char *p;