summaryrefslogtreecommitdiff
path: root/source4/lib
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2006-08-22 20:49:58 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 14:16:31 -0500
commit10d8142e5db9fab0e169d73772f9d8715c294a5b (patch)
tree0358226542a124e74280c12e71aae783a653a726 /source4/lib
parente7f56e45b2c5e952208c0a0755ed04185dc7c8f2 (diff)
downloadsamba-10d8142e5db9fab0e169d73772f9d8715c294a5b.tar.gz
samba-10d8142e5db9fab0e169d73772f9d8715c294a5b.tar.bz2
samba-10d8142e5db9fab0e169d73772f9d8715c294a5b.zip
r17720: in standalone ldb build, some systems need sys/stat.h and a defn of
comparison_fn_t (This used to be commit 99915268e60f6f877b639f1788ebdcf8105d6073)
Diffstat (limited to 'source4/lib')
-rw-r--r--source4/lib/ldb/include/includes.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/source4/lib/ldb/include/includes.h b/source4/lib/ldb/include/includes.h
index 827290342f..76870aca6d 100644
--- a/source4/lib/ldb/include/includes.h
+++ b/source4/lib/ldb/include/includes.h
@@ -30,6 +30,8 @@
#include <unistd.h>
#include <fnmatch.h>
#include <sys/time.h>
+#include <sys/types.h>
+#include <sys/stat.h>
#include <time.h>
#ifdef HAVE_STDINT_H
#include <stdint.h>
@@ -40,6 +42,9 @@
#define discard_const(ptr) ((void *)((intptr_t)(ptr)))
#define discard_const_p(type, ptr) ((type *)discard_const(ptr))
+#ifndef HAVE_COMPARISON_FN_T
+typedef int (*comparison_fn_t)(const void *, const void *);
+#endif
#include "talloc.h"