summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYuri Pankov <yuri.pankov@nexenta.com>2017-06-29 02:10:29 +0300
committerRichard Lowe <richlowe@richlowe.net>2017-06-29 14:22:50 -0400
commit8808b6ca868080736fca7df57b963793e6024266 (patch)
treefd4e03b348bca225537476a97d248a63c85385b5
parentb51c78890d70a7955894b29cf2e174a6b98e53b2 (diff)
downloadillumos-joyent-8808b6ca868080736fca7df57b963793e6024266.tar.gz
8439 tools version of mandoc fails to build on pre-6790 systems
Reviewed by: Prakash Surya <prakash.surya@delphix.com> Reviewed by: Andy Stormont <astormont@racktopsystems.com> Approved by: Richard Lowe <richlowe@richlowe.net>
-rw-r--r--usr/src/tools/mandoc/Makefile2
-rw-r--r--usr/src/tools/mandoc/config.h50
2 files changed, 51 insertions, 1 deletions
diff --git a/usr/src/tools/mandoc/Makefile b/usr/src/tools/mandoc/Makefile
index ee2309a8d1..3fa160f8bd 100644
--- a/usr/src/tools/mandoc/Makefile
+++ b/usr/src/tools/mandoc/Makefile
@@ -24,7 +24,7 @@ OBJS += fts.o \
reallocarray.o \
strtonum.o
-CPPFLAGS += -I. -include fts.h
+CPPFLAGS += -I. -include config.h -include fts.h
CPPFLAGS += -I$(NATIVE_ADJUNCT)/include
LDFLAGS += -L$(NATIVE_ADJUNCT)/lib -R$(NATIVE_ADJUNCT)/lib
diff --git a/usr/src/tools/mandoc/config.h b/usr/src/tools/mandoc/config.h
new file mode 100644
index 0000000000..49df5a23a1
--- /dev/null
+++ b/usr/src/tools/mandoc/config.h
@@ -0,0 +1,50 @@
+#ifndef MANDOC_CONFIG_H
+#define MANDOC_CONFIG_H
+
+#include <sys/types.h>
+
+#define MAN_CONF_FILE "/etc/man.conf"
+#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 0
+#define HAVE_ERR 1
+#define HAVE_FTS 1
+#define HAVE_FTS_COMPARE_CONST 0
+#define HAVE_GETLINE 1
+#define HAVE_GETSUBOPT 1
+#define HAVE_ISBLANK 1
+#define HAVE_MKDTEMP 1
+#define HAVE_NTOHL 1
+#define HAVE_OHASH 0
+#define HAVE_PLEDGE 0
+#define HAVE_PROGNAME 1
+#define HAVE_REALLOCARRAY 1
+#define HAVE_REWB_BSD 1
+#define HAVE_REWB_SYSV 1
+#define HAVE_SANDBOX_INIT 0
+#define HAVE_STRCASESTR 1
+#define HAVE_STRINGLIST 0
+#define HAVE_STRLCAT 1
+#define HAVE_STRLCPY 1
+#define HAVE_STRPTIME 1
+#define HAVE_STRSEP 1
+#define HAVE_STRTONUM 1
+#define HAVE_SYS_ENDIAN 0
+#define HAVE_VASPRINTF 1
+#define HAVE_WCHAR 1
+
+#define BINM_APROPOS "apropos"
+#define BINM_MAN "man"
+#define BINM_WHATIS "whatis"
+#define BINM_MAKEWHATIS "man -w"
+
+#define be32toh ntohl
+#define htobe32 htonl
+
+#endif /* MANDOC_CONFIG_H */