Jim Salter <[EMAIL PROTECTED]> writes:
> Configure option: --disable-cvs-ndbm
>
> In file included from add.c:47:
> cvs.h:66:18: ndbm.h: No such file or directory
> In file included from add.c:47:
> cvs.h:390: error: parse error before '*' token
> cvs.h:390: warning: type defaults to `int' in declaration of `open_module'
> cvs.h:390: warning: data definition has no type or storage class
> In file included from add.c:47:
> cvs.h:467: error: parse error before '*' token
> In file included from add.c:47:
> cvs.h:508: error: parse error before '*' token
> make[2]: *** [add.o] Error 1
> make[1]: *** [all-recursive] Error 1
> make: *** [all] Error 2
I do not really like adding #error lines into the sources. This would
fix your problem, but probably cause any compiler that does not grok a
#error preprocessor directive problems. I do not intend to commit this
patch.
-- Mark
Index: cvs.h
===================================================================
RCS file: /cvsroot/cvs/ccvs/src/cvs.h,v
retrieving revision 1.350
diff -u -p -u -p -r1.350 cvs.h
--- cvs.h 2 Sep 2006 23:18:00 -0000 1.350
+++ cvs.h 6 Sep 2006 17:08:20 -0000
@@ -63,7 +63,11 @@ char *strerror (int);
#ifdef MY_NDBM
#include "myndbm.h"
#else
+#ifdef HAVE_NDBM_H
#include <ndbm.h>
+#else
+#error Use --enable-cvs-ndbm or install an ndbm package.
+#endif
#endif /* MY_NDBM */
#include "rcs.h"
_______________________________________________
Bug-cvs mailing list
[email protected]
http://lists.nongnu.org/mailman/listinfo/bug-cvs