summaryrefslogtreecommitdiffstats
path: root/catman.c
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@openbsd.org>2017-02-09 18:46:44 +0000
committerIngo Schwarze <schwarze@openbsd.org>2017-02-09 18:46:44 +0000
commitabfc266c9ddf762b50aee6c73be6b252074ef05a (patch)
tree2726ec5f79a034e8be03b2bd51e2beadc8f7bc49 /catman.c
parentffb7fbf356b9c244ecda2af4945a30de66c87730 (diff)
downloadmandoc-abfc266c9ddf762b50aee6c73be6b252074ef05a.tar.gz
Illumos doesn't have O_DIRECTORY. Work around that for now, may
fix it better after the 1.14.1 release. Portability issue reported by Sevan Janiyan <venture37 at geeklan dot co dot uk>.
Diffstat (limited to 'catman.c')
-rw-r--r--catman.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/catman.c b/catman.c
index a71b5295..f9970dad 100644
--- a/catman.c
+++ b/catman.c
@@ -41,6 +41,10 @@
#include <time.h>
#include <unistd.h>
+#ifndef O_DIRECTORY
+#define O_DIRECTORY 0
+#endif
+
int process_manpage(int, int, const char *);
int process_tree(int, int);
void run_mandocd(int, const char *, const char *)