Subject: sleepycat.c compilation error if no sleepycat on system

From: Eugene Crosser <[email-masked]>
Date: 02 Aug 2002 17:27:28 +0400

If there is no db[104].h and no db.h, there is a compilation error on
sleepycat.c.  Can be circumvented by the following diff:

Index: lib/sleepycatdb.c
===================================================================
RCS file: /cvsroot/zmailer/lib/sleepycatdb.c,v
retrieving revision 1.4
diff -u -r1.4 sleepycatdb.c
--- lib/sleepycatdb.c   2002/07/05 10:10:13     1.4
+++ lib/sleepycatdb.c   2002/07/31 17:47:39
@@ -25,6 +25,7 @@
 #include "zmalloc.h"
 #include "libz.h"
 
+#ifdef HAVE_SLEEPYCAT_DB
 
 ZSleepyEnvSet *ZSleepyEnvSetRoot = NULL;
 
@@ -306,3 +307,5 @@
 
        return err;
 }
+
+#endif /* HAVE_SLEEPYCAT_DB */
Index: include/sleepycatdb.h
===================================================================
RCS file: /cvsroot/zmailer/include/sleepycatdb.h,v
retrieving revision 1.4
diff -u -r1.4 sleepycatdb.h
--- include/sleepycatdb.h       2002/07/05 10:10:15     1.4
+++ include/sleepycatdb.h       2002/07/31 17:47:39
@@ -9,7 +9,7 @@
     defined(HAVE_DB2_DB_H) || defined(HAVE_DB3_DB_H) || \
     defined(HAVE_DB4_DB_H)
 
-
+#define HAVE_SLEEPYCAT_DB
 
 #if defined(HAVE_DB_185_H) && !defined(HAVE_DB_OPEN2) && \
     !defined(HAVE_DB_CREATE)

-- 
Eugene Crosser, head of Internet Applications section, +7 501 787 1000
ROL, Teleross, Golden Telecom, http://user.rol.ru/~crosser/

-
To unsubscribe from this list: send the line "unsubscribe zmailer" in
the body of a message to [email-masked]