summaryrefslogtreecommitdiffstats
path: root/lib/ntdb
diff options
context:
space:
mode:
authorChristian Ambach <ambi@samba.org>2013-11-22 05:15:59 +0100
committerChristian Ambach <ambi@samba.org>2013-12-07 16:45:15 +0100
commit794db9ea31eabc23a85aeb34fd1d2f227c6682a8 (patch)
tree15435e5ae07b778c9ff570fa1ff079da81058bef /lib/ntdb
parent100f324fcd0db19e3db9a9776377a0391e82f775 (diff)
downloadsamba-794db9ea31eabc23a85aeb34fd1d2f227c6682a8.tar.gz
samba-794db9ea31eabc23a85aeb34fd1d2f227c6682a8.tar.xz
samba-794db9ea31eabc23a85aeb34fd1d2f227c6682a8.zip
lib/ntdb fix compilation when libreplace is not around
Signed-off-by: Christian Ambach <ambi@samba.org> Reviewed-by: Jelmer Vernooij <jelmer@samba.org> Reviewed-by: Rusty Russell <rusty@samba.org>
Diffstat (limited to 'lib/ntdb')
-rw-r--r--lib/ntdb/ntdb.c1
-rw-r--r--lib/ntdb/ntdb.h10
2 files changed, 10 insertions, 1 deletions
diff --git a/lib/ntdb/ntdb.c b/lib/ntdb/ntdb.c
index 5d56b33b5a..51fbbcae64 100644
--- a/lib/ntdb/ntdb.c
+++ b/lib/ntdb/ntdb.c
@@ -17,7 +17,6 @@
*/
#include "private.h"
#ifndef HAVE_LIBREPLACE
-#include <ccan/asprintf/asprintf.h>
#include <stdarg.h>
#endif
diff --git a/lib/ntdb/ntdb.h b/lib/ntdb/ntdb.h
index df3a9ddc4e..a3a627f28d 100644
--- a/lib/ntdb/ntdb.h
+++ b/lib/ntdb/ntdb.h
@@ -31,10 +31,20 @@ extern "C" {
#ifdef HAVE_LIBREPLACE
#include <replace.h>
+#include <system/filesys.h>
#else
#if HAVE_FILE_OFFSET_BITS
#define _FILE_OFFSET_BITS 64
#endif
+
+#ifndef _PUBLIC_
+#ifdef HAVE_VISIBILITY_ATTR
+#define _PUBLIC_ __attribute__((visibility("default")))
+#else
+#define _PUBLIC_
+#endif
+#endif
+
/* For mode_t */
#include <sys/types.h>
/* For O_* flags. */