summaryrefslogtreecommitdiff
path: root/src/unix/map.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/unix/map.c')
-rw-r--r--src/unix/map.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/unix/map.c b/src/unix/map.c
index 7de99c99d..e62ab3e76 100644
--- a/src/unix/map.c
+++ b/src/unix/map.c
@@ -6,7 +6,7 @@
*/
#include <git2/common.h>
-#ifndef GIT_WIN32
+#if !defined(GIT_WIN32) && !defined(NO_MMAP)
#include "map.h"
#include <sys/mman.h>