From: greg@kroah.com Date: Thu, 23 Oct 2003 02:39:28 +0000 (-0700) Subject: [PATCH] tweak tdb to build within udev better. X-Git-Tag: 005~15 X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=elogind.git;a=commitdiff_plain;h=aa04c7f0cf40d07a25cc3186c8d786cf9014f531 [PATCH] tweak tdb to build within udev better. --- 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