chiark / gitweb /
[PATCH] tweak tdb to build within udev better.
authorgreg@kroah.com <greg@kroah.com>
Thu, 23 Oct 2003 02:39:28 +0000 (19:39 -0700)
committerGreg KH <gregkh@suse.de>
Wed, 27 Apr 2005 04:05:23 +0000 (21:05 -0700)
tdb/spinlock.c
tdb/tdb.c

index 2370ce3..4b17b1d 100644 (file)
    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>
index 34681ea..772602e 100644 (file)
--- a/tdb/tdb.c
+++ b/tdb/tdb.c
  * 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>