1) use config.h if available
authorewt <devnull@localhost>
Fri, 17 Jan 1997 16:22:45 +0000 (16:22 +0000)
committerewt <devnull@localhost>
Fri, 17 Jan 1997 16:22:45 +0000 (16:22 +0000)
2) use if not ifdef
3) include <string.h>

CVS patchset: 1316
CVS date: 1997/01/17 16:22:45

lib/rebuilddb.c

index ed1a611..78c9e68 100644 (file)
@@ -1,10 +1,13 @@
+#include "config.h"
+
 #include <errno.h>
 #include <fcntl.h>
 #include <stdio.h>
+#include <string.h>
 #include <sys/stat.h>  /* for mkdir(2) !?! */
 #include <unistd.h>
 
-#ifdef HAVE_ALLOCA_H
+#if HAVE_ALLOCA_H
 #include <alloca.h>
 #endif