--- apache_1.3.6/src/modules/standard/mod_rewrite.h.orig	Mon May 17 13:47:13 1999
+++ apache_1.3.6/src/modules/standard/mod_rewrite.h	Mon May 17 13:47:27 1999
@@ -126,7 +126,11 @@
      * so we also need to know the file extension
      */
 #ifndef NO_DBM_REWRITEMAP
+#if defined(__GLIBC_MINOR__) && __GLIBC_MINOR__ > 0
+#include <db1/ndbm.h>
+#else
 #include <ndbm.h>
+#endif
 #if defined(__FreeBSD__) || (defined(DB_LOCK) && defined(DB_SHMEM))
 #define NDBM_FILE_SUFFIX ".db"
 #else
--- apache_1.3.6/src/modules/standard/mod_auth_dbm.c.orig	Mon May 17 13:51:54 1999
+++ apache_1.3.6/src/modules/standard/mod_auth_dbm.c	Mon May 17 13:52:43 1999
@@ -74,7 +74,13 @@
 #include "http_core.h"
 #include "http_log.h"
 #include "http_protocol.h"
+
+#if defined(__GLIBC_MINOR__) && __GLIBC_MINOR__ > 0
+#include <db1/ndbm.h>
+#else
 #include <ndbm.h>
+#endif
+
 #include "ap_md5.h"
 
 /*
