diff options
author | 2011-05-26 20:36:21 +0000 | |
---|---|---|
committer | 2011-05-26 20:36:21 +0000 | |
commit | f241326688a1194c7487ac998177f9f7aa5ac406 (patch) | |
tree | bad4851b5e833543f26aa0d0004b3d5a62d135e6 /Makefile | |
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 'Makefile')
-rw-r--r-- | Makefile | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -108,6 +108,7 @@ SRCS = Makefile \ term.h \ term_ascii.c \ term_ps.c \ + test-mmap.c \ test-strlcat.c \ test-strlcpy.c \ tree.c \ @@ -382,6 +383,10 @@ config.h: config.h.pre config.h.post echo '#define HAVE_STRLCAT'; \ rm test-strlcat; \ fi; \ + if $(CC) $(CFLAGS) -Werror -o test-mmap test-mmap.c >> config.log 2>&1; then \ + echo '#define HAVE_MMAP'; \ + rm test-mmap; \ + fi; \ if $(CC) $(CFLAGS) -Werror -o test-strlcpy test-strlcpy.c >> config.log 2>&1; then \ echo '#define HAVE_STRLCPY'; \ rm test-strlcpy; \ |