From aa04c7f0cf40d07a25cc3186c8d786cf9014f531 Mon Sep 17 00:00:00 2001 From: "greg@kroah.com" Date: Wed, 22 Oct 2003 19:39:28 -0700 Subject: [PATCH] [PATCH] tweak tdb to build within udev better. --- tdb/spinlock.c | 8 +++++++- tdb/tdb.c | 6 ++++++ 2 files changed, 13 insertions(+), 1 deletion(-) diff --git a/tdb/spinlock.c b/tdb/spinlock.c index 2370ce3bd..4b17b1d94 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 #endif -#if STANDALONE +#ifdef STANDALONE #include #include #include diff --git a/tdb/tdb.c b/tdb/tdb.c index 34681ea78..772602ed5 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 -- 2.30.2