summaryrefslogtreecommitdiff
path: root/mmap
diff options
context:
space:
mode:
authorbjh <bjh@13f79535-47bb-0310-9956-ffa450edef68>1999-10-24 04:30:19 +0000
committerbjh <bjh@13f79535-47bb-0310-9956-ffa450edef68>1999-10-24 04:30:19 +0000
commit133ba67098f7007c6e7dbcf54c8ce96e51549eda (patch)
tree9eba40118013a61a4a5a5643b2b35282ad25464e /mmap
parent65da9aa2eccd0efa3238bc78ac75d06a0a9276a7 (diff)
downloadlibapr-133ba67098f7007c6e7dbcf54c8ce96e51549eda.tar.gz
Don't try to compile mmap functions if the platform doesn't have mmap.
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@59412 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'mmap')
-rw-r--r--mmap/unix/mmap.c4
1 files changed, 4 insertions, 0 deletions
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