summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--tdb/spinlock.c8
-rw-r--r--tdb/tdb.c6
2 files changed, 13 insertions, 1 deletions
diff --git a/tdb/spinlock.c b/tdb/spinlock.c
index 2370ce3bdd..4b17b1d943 100644
--- a/tdb/spinlock.c
+++ b/tdb/spinlock.c
@@ -17,11 +17,17 @@
along with this program; if not, write to the Free Software
Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/
+/* udev defines */
+#define STANDALONE
+#define TDB_DEBUG
+#define HAVE_MMAP 1
+
+
#if HAVE_CONFIG_H
#include <config.h>
#endif
-#if STANDALONE
+#ifdef STANDALONE
#include <stdlib.h>
#include <stdio.h>
#include <unistd.h>
diff --git a/tdb/tdb.c b/tdb/tdb.c
index 34681ea78f..772602ed5b 100644
--- a/tdb/tdb.c
+++ b/tdb/tdb.c
@@ -41,6 +41,12 @@
* right time. Probably too hard -- the process just doesn't know.
*/
+/* udev defines */
+#define STANDALONE
+#define TDB_DEBUG
+#define HAVE_MMAP 1
+
+
#ifdef STANDALONE
#if HAVE_CONFIG_H
#include <config.h>