summaryrefslogtreecommitdiff
path: root/usr/src/cmd/mandoc/config.h
diff options
context:
space:
mode:
authorJoshua M. Clulow <josh@sysmgr.org>2020-04-08 12:30:48 -0700
committerJoshua M. Clulow <josh@sysmgr.org>2020-04-08 12:30:48 -0700
commit6265851cb0eea0e24c694164ca91635b4d414876 (patch)
tree277666933f3d28284d62546591e3f2f6ec4cdd9e /usr/src/cmd/mandoc/config.h
parentb9219c8a2cb8887f04ec2b394b225390a6e624ae (diff)
downloadillumos-gate-sysroot/20181213.tar.gz
illumos sysroot 20181213 v1sysroot/20181213
In order to produce a sysroot archive for cross compilation, we need to be able to build binary artefacts from a specific historic version of the gate. In order to build the gate on a modern version of the OS, we must first backport a few minor fixes to the tools and work around some leakage of build system headers into the gate build. We also disable a few components which should not end up in the sysroot.
Diffstat (limited to 'usr/src/cmd/mandoc/config.h')
-rw-r--r--usr/src/cmd/mandoc/config.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/usr/src/cmd/mandoc/config.h b/usr/src/cmd/mandoc/config.h
index 75f62a9339..5f66e96f82 100644
--- a/usr/src/cmd/mandoc/config.h
+++ b/usr/src/cmd/mandoc/config.h
@@ -2,12 +2,16 @@
#define MANDOC_CONFIG_H
#include <sys/types.h>
+#include <fcntl.h> /* XXX so that O_DIRECTORY is already defined */
#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
+#ifdef O_DIRECTORY
+#undef O_DIRECTORY
+#endif
#define O_DIRECTORY 0
#define HAVE_CMSG_XPG42 0
#define HAVE_DIRENT_NAMLEN 0