summaryrefslogtreecommitdiff
path: root/source4/lib/tdb/common/tdb_private.h
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2005-09-24 07:30:20 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 13:38:51 -0500
commit60a455dd449acdad9bdb21fbe68a15e2b584a5d2 (patch)
tree7f1e1e60a4adcabed14548a69c4704ecfd3773af /source4/lib/tdb/common/tdb_private.h
parentc72afc39f08cca1937cb41d406e66bcc4dbdd80a (diff)
downloadsamba-60a455dd449acdad9bdb21fbe68a15e2b584a5d2.tar.gz
samba-60a455dd449acdad9bdb21fbe68a15e2b584a5d2.tar.bz2
samba-60a455dd449acdad9bdb21fbe68a15e2b584a5d2.zip
r10471: stratos doesn't have getpagesize(), so guess 8k on systems that don't
have it. Overestimating is harmless. (This used to be commit ab953c8c72060c496876b6f39d388ad2f7e3c7e0)
Diffstat (limited to 'source4/lib/tdb/common/tdb_private.h')
-rw-r--r--source4/lib/tdb/common/tdb_private.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/source4/lib/tdb/common/tdb_private.h b/source4/lib/tdb/common/tdb_private.h
index a451dff0af..bfd8d04448 100644
--- a/source4/lib/tdb/common/tdb_private.h
+++ b/source4/lib/tdb/common/tdb_private.h
@@ -65,6 +65,10 @@ ssize_t pwrite(int fd, const void *buf, size_t count, off_t offset);
#define u32 unsigned
#endif
+#ifndef HAVE_GETPAGESIZE
+#define getpagesize() 0x2000
+#endif
+
typedef u32 tdb_len_t;
typedef u32 tdb_off_t;