We are calling abort(), so we should include stdlib.h.


git-svn-id: https://svn.apache.org/repos/asf/apr/apr-util/trunk@58446 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/dbm/apr_dbm_berkeleydb.c b/dbm/apr_dbm_berkeleydb.c
index 87cb60b..ab45ea5 100644
--- a/dbm/apr_dbm_berkeleydb.c
+++ b/dbm/apr_dbm_berkeleydb.c
@@ -54,6 +54,10 @@
 
 #include "apr_dbm_private.h"
 
+#if APR_HAVE_STDLIB_H
+#include <stdlib.h> /* for abort() */
+#endif
+
 /*
  * We pick up all varieties of Berkeley DB through db.h (included through
  * apu_select_dbm.h). This code has been compiled/tested against DB1,
diff --git a/dbm/apr_dbm_gdbm.c b/dbm/apr_dbm_gdbm.c
index a37d3cd..57fcfe7 100644
--- a/dbm/apr_dbm_gdbm.c
+++ b/dbm/apr_dbm_gdbm.c
@@ -55,7 +55,9 @@
 #include "apr_dbm_private.h"
 
 #include <gdbm.h>
-#include <stdlib.h>     /* for free() */
+#if APR_HAVE_STDLIB_H
+#include <stdlib.h> /* for free() and abort() */
+#endif
 
 typedef GDBM_FILE real_file_t;
 
diff --git a/dbm/apr_dbm_sdbm.c b/dbm/apr_dbm_sdbm.c
index 0d0abb5..8787369 100644
--- a/dbm/apr_dbm_sdbm.c
+++ b/dbm/apr_dbm_sdbm.c
@@ -54,8 +54,10 @@
 
 #include "apr_dbm_private.h"
 
-
 #include "apr_sdbm.h"
+#if APR_HAVE_STDLIB_H
+#include <stdlib.h>  /* For abort() */
+#endif
 
 typedef apr_sdbm_t *real_file_t;