aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/main.c
diff options
context:
space:
mode:
authorJoerg Sonnenberger <joerg@netbsd.org>2010-07-29 22:00:39 +0000
committerJoerg Sonnenberger <joerg@netbsd.org>2010-07-29 22:00:39 +0000
commit13040aee17cb3502918d0eebb954f90e53e6d675 (patch)
tree23889ec0bbe1ec317bd86940c5da0f6149e57f5c /main.c
parent530b00c1ca84082445261376feed21a23f7216a7 (diff)
downloadmandoc-13040aee17cb3502918d0eebb954f90e53e6d675.tar.gz
mandoc-13040aee17cb3502918d0eebb954f90e53e6d675.tar.zst
mandoc-13040aee17cb3502918d0eebb954f90e53e6d675.zip
Use 0 for MAP_FILE if it doesn't exist. From Hans Rosenfeld.
Diffstat (limited to 'main.c')
-rw-r--r--main.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/main.c b/main.c
index b28b285b..4ad45ab2 100644
--- a/main.c
+++ b/main.c
@@ -1,4 +1,4 @@
-/* $Id: main.c,v 1.100 2010/07/25 11:44:31 kristaps Exp $ */
+/* $Id: main.c,v 1.101 2010/07/29 22:00:39 joerg Exp $ */
/*
* Copyright (c) 2008, 2009, 2010 Kristaps Dzonsons <kristaps@bsd.lv>
* Copyright (c) 2010 Ingo Schwarze <schwarze@openbsd.org>
@@ -37,6 +37,10 @@
#include "man.h"
#include "roff.h"
+#ifndef MAP_FILE
+#define MAP_FILE 0
+#endif
+
#define UNCONST(a) ((void *)(uintptr_t)(const void *)(a))
/* FIXME: Intel's compiler? LLVM? pcc? */