diff options
author | Ingo Schwarze <schwarze@openbsd.org> | 2017-02-09 18:46:44 +0000 |
---|---|---|
committer | Ingo Schwarze <schwarze@openbsd.org> | 2017-02-09 18:46:44 +0000 |
commit | abfc266c9ddf762b50aee6c73be6b252074ef05a (patch) | |
tree | 2726ec5f79a034e8be03b2bd51e2beadc8f7bc49 /catman.c | |
parent | ffb7fbf356b9c244ecda2af4945a30de66c87730 (diff) | |
download | mandoc-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.c | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -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 *) |