diff options
author | Kristaps Dzonsons <kristaps@bsd.lv> | 2011-05-26 20:36:21 +0000 |
---|---|---|
committer | Kristaps Dzonsons <kristaps@bsd.lv> | 2011-05-26 20:36:21 +0000 |
commit | f241326688a1194c7487ac998177f9f7aa5ac406 (patch) | |
tree | bad4851b5e833543f26aa0d0004b3d5a62d135e6 /test-mmap.c | |
parent | dbf801977e01cd4d9bad6df7cfeacb641d962157 (diff) | |
download | mandoc-f241326688a1194c7487ac998177f9f7aa5ac406.tar.gz mandoc-f241326688a1194c7487ac998177f9f7aa5ac406.tar.zst mandoc-f241326688a1194c7487ac998177f9f7aa5ac406.zip |
At least in theory, this patch lets us compile on Windows (which does
not have mmap(), from what I can tell).
Diffstat (limited to 'test-mmap.c')
-rw-r--r-- | test-mmap.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/test-mmap.c b/test-mmap.c new file mode 100644 index 00000000..87596e3f --- /dev/null +++ b/test-mmap.c @@ -0,0 +1,9 @@ +#include <sys/mman.h> + +int +main(int argc, char **argv) +{ + + mmap(0, 0, PROT_READ, MAP_FILE|MAP_SHARED, -1, 0); + return 0; +} |