summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--include/arch/unix/mmap.c4
-rw-r--r--mmap/unix/mmap.c4
2 files changed, 8 insertions, 0 deletions
diff --git a/include/arch/unix/mmap.c b/include/arch/unix/mmap.c
index 999ff958f..47bdc7f81 100644
--- a/include/arch/unix/mmap.c
+++ b/include/arch/unix/mmap.c
@@ -53,6 +53,8 @@
*
*/
+#if HAVE_MMAP
+
#include "mmap_h.h"
#include "fileio.h"
#include "apr_mmap.h"
@@ -175,3 +177,5 @@ ap_status_t ap_mmap_delete(struct mmap_t *mmap)
}
return rv;
}
+
+#endif
diff --git a/mmap/unix/mmap.c b/mmap/unix/mmap.c
index 999ff958f..47bdc7f81 100644
--- a/mmap/unix/mmap.c
+++ b/mmap/unix/mmap.c
@@ -53,6 +53,8 @@
*
*/
+#if HAVE_MMAP
+
#include "mmap_h.h"
#include "fileio.h"
#include "apr_mmap.h"
@@ -175,3 +177,5 @@ ap_status_t ap_mmap_delete(struct mmap_t *mmap)
}
return rv;
}
+
+#endif