Signed-off-by: Christian Ambach <ambi@samba.org>
Reviewed-by: Jelmer Vernooij <jelmer@samba.org>
Reviewed-by: Rusty Russell <rusty@samba.org>
*/
#include "private.h"
#ifndef HAVE_LIBREPLACE
-#include <ccan/asprintf/asprintf.h>
#include <stdarg.h>
#endif
#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. */