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:
parent
100f324fcd
commit
794db9ea31
@ -17,7 +17,6 @@
|
||||
*/
|
||||
#include "private.h"
|
||||
#ifndef HAVE_LIBREPLACE
|
||||
#include <ccan/asprintf/asprintf.h>
|
||||
#include <stdarg.h>
|
||||
#endif
|
||||
|
||||
|
@ -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. */
|
||||
|
Loading…
Reference in New Issue
Block a user