diff options
-rw-r--r-- | lib/ntdb/ntdb.c | 1 | ||||
-rw-r--r-- | lib/ntdb/ntdb.h | 10 |
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. */ |