mirror of
https://github.com/samba-team/samba.git
synced 2025-01-13 13:18:06 +03:00
r6651: It's not the smartest thing in the world to #define _SAMBA_BUILD_ in a file
that is only included if _SAMBA_BUILD_ is defined... Let's see how far this gets us. Volker
This commit is contained in:
parent
62a662dea9
commit
563275b35f
@ -254,6 +254,7 @@ if test "x$CFLAGS" = x; then
|
||||
CFLAGS="-O"
|
||||
fi
|
||||
|
||||
CFLAGS="${CFLAGS} -D_SAMBA_BUILD_"
|
||||
|
||||
AC_ARG_ENABLE(developer, [ --enable-developer Turn on developer warnings and debugging (default=no)],
|
||||
[if eval "test x$enable_developer = xyes"; then
|
||||
|
@ -804,7 +804,6 @@ extern int errno;
|
||||
#include "tdb/tdb.h"
|
||||
#include "tdb/spinlock.h"
|
||||
#include "tdb/tdbutil.h"
|
||||
#define _SAMBA_BUILD_ 1
|
||||
#include "talloc.h"
|
||||
#include "nt_status.h"
|
||||
#include "ads.h"
|
||||
|
@ -29,6 +29,14 @@
|
||||
|
||||
#ifdef _SAMBA_BUILD_
|
||||
#include "includes.h"
|
||||
/* This is to circumvent SAMBA3's paranoid malloc checker. Here in this file
|
||||
* we trust ourselves... */
|
||||
#ifdef malloc
|
||||
#undef malloc
|
||||
#endif
|
||||
#ifdef realloc
|
||||
#undef realloc
|
||||
#endif
|
||||
#else
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
|
Loading…
Reference in New Issue
Block a user