summaryrefslogtreecommitdiff
path: root/source4/lib/tdb/common
diff options
context:
space:
mode:
Diffstat (limited to 'source4/lib/tdb/common')
-rw-r--r--source4/lib/tdb/common/spinlock.c6
-rw-r--r--source4/lib/tdb/common/tdb.c2
2 files changed, 4 insertions, 4 deletions
diff --git a/source4/lib/tdb/common/spinlock.c b/source4/lib/tdb/common/spinlock.c
index 27481e221c..30bfd77962 100644
--- a/source4/lib/tdb/common/spinlock.c
+++ b/source4/lib/tdb/common/spinlock.c
@@ -27,7 +27,7 @@
#include <config.h>
#endif
-#if STANDALONE
+#ifndef _SAMBA_BUILD_
#include <stdlib.h>
#include <stdio.h>
#include <unistd.h>
@@ -157,12 +157,12 @@ static inline int __spin_is_locked(spinlock_t *lock)
* "sgi" and "_COMPILER_VERSION" are always defined by MIPSPro.
*/
-#if defined(STANDALONE)
+#ifndef _SAMBA_BUILD_
/* MIPSPro 7.3 has "__inline" as an extension, but not "inline. */
#define inline __inline
-#endif /* STANDALONE */
+#endif /* _SAMBA_BUILD_ */
/* Returns 0 if the lock is acquired, EBUSY otherwise. */
static inline int __spin_trylock(spinlock_t *lock)
diff --git a/source4/lib/tdb/common/tdb.c b/source4/lib/tdb/common/tdb.c
index afe2ca1621..46b2499179 100644
--- a/source4/lib/tdb/common/tdb.c
+++ b/source4/lib/tdb/common/tdb.c
@@ -46,7 +46,7 @@
* right time. Probably too hard -- the process just doesn't know.
*/
-#ifdef STANDALONE
+#ifndef _SAMBA_BUILD_
#if HAVE_CONFIG_H
#include <config.h>
#endif