1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-24 21:34:56 +03:00

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>
This commit is contained in:
Christian Ambach 2013-11-22 05:15:59 +01:00
parent 100f324fcd
commit 794db9ea31
2 changed files with 10 additions and 1 deletions

View File

@ -17,7 +17,6 @@
*/
#include "private.h"
#ifndef HAVE_LIBREPLACE
#include <ccan/asprintf/asprintf.h>
#include <stdarg.h>
#endif

View File

@ -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. */