From 794db9ea31eabc23a85aeb34fd1d2f227c6682a8 Mon Sep 17 00:00:00 2001 From: Christian Ambach Date: Fri, 22 Nov 2013 05:15:59 +0100 Subject: lib/ntdb fix compilation when libreplace is not around Signed-off-by: Christian Ambach Reviewed-by: Jelmer Vernooij Reviewed-by: Rusty Russell --- lib/ntdb/ntdb.c | 1 - lib/ntdb/ntdb.h | 10 ++++++++++ 2 files changed, 10 insertions(+), 1 deletion(-) 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 #include #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 +#include #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 /* For O_* flags. */ -- cgit