summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2014-08-28 09:35:04 -0400
committerNick Mathewson <nickm@torproject.org>2014-08-28 09:35:04 -0400
commit23225508d2d82ac805e4cc820a800ed6eabbac6b (patch)
tree5341dc7e28ccbe746038285944f5e7e6a406617e
parentd45175b21ffd9e96fa7b80c7eadcc87df24fea88 (diff)
Don't include sys/mman.h on Windows
The header doesn't exist; instead, just fall back to malloc.
-rw-r--r--crypto_scrypt-nosse.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/crypto_scrypt-nosse.c b/crypto_scrypt-nosse.c
index f54e42e..311e84a 100644
--- a/crypto_scrypt-nosse.c
+++ b/crypto_scrypt-nosse.c
@@ -28,8 +28,9 @@
*/
#include <sys/types.h>
+#ifndef _WIN32
#include <sys/mman.h>
-
+#endif
#include <errno.h>
#include <stdint.h>
#include <stdlib.h>