[Raw Msg Headers][Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

zmailer 2.99.48p2



I just compiled 2.99.48p2 on my home machine, and noticed an
oddity:

smtpserver/policytest.c included some ndbm-specific stuff even
though configure detected an absence of ndbm:

policytest.c: In function `policydefine':
policytest.c:76: union has no member named `_ndbm'
policytest.c:96: union has no member named `_ndbm'
make[1]: *** [policytest.o] Error 1
make[1]: Leaving directory `/mnt/source/zmailer-2.99.48/smtpserver'
make: *** [all] Error 1
[/mnt/source/zmailer-2.99.48]2>acli@ada[191]>

which is fixed by:

--- smtpserver/policytest.c.dist	Tue May 13 00:45:20 1997
+++ smtpserver/policytest.c	Tue May 13 00:45:49 1997
@@ -73,7 +73,9 @@
     return;
   }
 
+#ifdef HAVE_NDBM_H
   rel->ndbm = NULL; /* Zero it -- well it is zeroed already.. */
+#endif
   switch (rel->dbt) {
 #ifdef HAVE_NDBM_H
     case _dbt_ndbm:
@@ -93,10 +95,12 @@
     default:
       break;
   }
+#ifdef HAVE_NDBM_H
   if (rel->ndbm == NULL) {
     /* XX: ERROR!  Could not open the database! */
     return;
   }
+#endif
 
 #ifdef HAVE_NDBM_H
 #endif

--
Ambrose Li   ~   acli@acli%interlog.com      (Hello, world!\n)
~   http://www.interlog.com/~acli/~acli/  ~   print flush quit