diff options
author | Robert Mustacchi <rm@fingolfin.org> | 2020-01-18 22:03:20 +0000 |
---|---|---|
committer | Robert Mustacchi <rm@fingolfin.org> | 2020-02-01 06:34:51 +0000 |
commit | 69c811ab73b7ce531454837ae68c4343e8724e0b (patch) | |
tree | 00076116a576bde8519acea540782c3b49a63f34 /usr/src/cmd/mandoc/config.h | |
parent | 2fe8bc68ec8e8e8e05997b3ac2f081bfdded45ab (diff) | |
download | illumos-joyent-69c811ab73b7ce531454837ae68c4343e8724e0b.tar.gz |
9965 Want support for O_DIRECTORY
Reviewed by: Andy Fiddaman <andy@omniosce.org>
Reviewed by: Hans Rosenfeld <rosenfeld@grumpf.hope-2000.org>
Approved by: Garrett D'Amore <garrett@damore.org>
Diffstat (limited to 'usr/src/cmd/mandoc/config.h')
-rw-r--r-- | usr/src/cmd/mandoc/config.h | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/usr/src/cmd/mandoc/config.h b/usr/src/cmd/mandoc/config.h index 3ae0245c08..e4bc9a6a3b 100644 --- a/usr/src/cmd/mandoc/config.h +++ b/usr/src/cmd/mandoc/config.h @@ -3,12 +3,21 @@ #include <sys/types.h> +/* + * The tools build may be on a system without O_DIRECTORY. So we need to + * explicitly include sys/fcntl.h and check for O_DIRECTORY and if not present, + * use the default of it being zero. + */ +#include <sys/fcntl.h> +#ifndef O_DIRECTORY +#define O_DIRECTORY 0 +#endif + #define MAN_CONF_FILE "/etc/man.conf" #define MANPATH_BASE "/usr/share/man" #define MANPATH_DEFAULT "/usr/share/man:/usr/gnu/share/man" #define UTF8_LOCALE "en_US.UTF-8" #define EFTYPE EINVAL -#define O_DIRECTORY 0 #define HAVE_CMSG_XPG42 0 #define HAVE_DIRENT_NAMLEN 0 #define HAVE_ENDIAN 1 |