diff options
author | Jerry Jelinek <jerry.jelinek@joyent.com> | 2020-02-05 12:38:17 +0000 |
---|---|---|
committer | Jerry Jelinek <jerry.jelinek@joyent.com> | 2020-02-05 12:38:17 +0000 |
commit | 0efa232c593d8fe393b56fb1ff4dda751660b3b3 (patch) | |
tree | b037fe733cd026b5cefb5b27d7f3f6cbc8f4c3ac /usr/src/cmd/mandoc/config.h | |
parent | 86b01acdc561eb9c47f9d9e8c33b2d15e064aed7 (diff) | |
parent | 7484d76e78bc19298de9589214be103d65cf3989 (diff) | |
download | illumos-joyent-0efa232c593d8fe393b56fb1ff4dda751660b3b3.tar.gz |
[illumos-gate merge]
commit 7484d76e78bc19298de9589214be103d65cf3989
12263 libc: NULL pointer errors (sparc)
commit b36afad7ffe84071c2c6831936cc1c524bd1ca90
12216 Clean up libc-tests smatch
commit 69c811ab73b7ce531454837ae68c4343e8724e0b
9965 Want support for O_DIRECTORY
commit 2fe8bc68ec8e8e8e05997b3ac2f081bfdded45ab
12275 check_rtime(1onbld): BUNDEF_OBJ and BUNUSED_OBJ
commit 5fe3b0929d8a195dbfa4196d72a3f9b15b745171
12084 idm_conn_event_handler mishandles CA_DROP action
Conflicts:
usr/src/test/os-tests/tests/Makefile
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 |