From b97d34324cdec9efa4093d1fd5113e1c806f2f8d Mon Sep 17 00:00:00 2001 From: Ingo Schwarze Date: Thu, 9 Feb 2017 18:46:44 +0000 Subject: 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 . --- catman.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/catman.c b/catman.c index 438474a5..88a818ac 100644 --- a/catman.c +++ b/catman.c @@ -1,4 +1,4 @@ -/* $Id: catman.c,v 1.16 2017/02/08 16:11:40 schwarze Exp $ */ +/* $Id: catman.c,v 1.17 2017/02/09 18:46:44 schwarze Exp $ */ /* * Copyright (c) 2017 Michael Stapelberg * Copyright (c) 2017 Ingo Schwarze @@ -41,6 +41,10 @@ #include #include +#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 *) -- cgit v1.2.3-56-ge451