summaryrefslogtreecommitdiff
path: root/source3/tdb
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2000-01-14 08:33:20 +0000
committerAndrew Tridgell <tridge@samba.org>2000-01-14 08:33:20 +0000
commit1359195c505df8af49b31460ec21e4e007f462c2 (patch)
tree4a1269296b98d9136e5ccb5fe08f8b08a5ad9b84 /source3/tdb
parent7bc1cc7e07991641d436b2c8a35b52663d4c5c05 (diff)
downloadsamba-1359195c505df8af49b31460ec21e4e007f462c2.tar.gz
samba-1359195c505df8af49b31460ec21e4e007f462c2.tar.bz2
samba-1359195c505df8af49b31460ec21e4e007f462c2.zip
casts and defines to make solaris happy
(This used to be commit 77cf152c02b445f4b6e9de393936dd6e54e6f442)
Diffstat (limited to 'source3/tdb')
-rw-r--r--source3/tdb/tdb.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/source3/tdb/tdb.c b/source3/tdb/tdb.c
index 9a598b9980..c5522bbf4b 100644
--- a/source3/tdb/tdb.c
+++ b/source3/tdb/tdb.c
@@ -54,6 +54,10 @@
#define BUCKET(hash) ((hash) % tdb->header.hash_size)
+#ifndef MAP_FILE
+#define MAP_FILE 0
+#endif
+
/* the body of the database is made of one list_struct for the free space
plus a separate data list for each hash value */
struct list_struct {