summaryrefslogtreecommitdiff
path: root/usr/src/cmd/mandoc/config.h
diff options
context:
space:
mode:
authorGarrett D'Amore <garrett@damore.org>2014-07-25 14:50:37 -0700
committerGarrett D'Amore <garrett@damore.org>2014-08-02 00:19:34 -0700
commit698f87a48e2e945bfe5493ce168e0d0ae1cedd5c (patch)
tree385784d73d5e580be0ffca40abad0dabf0e6084d /usr/src/cmd/mandoc/config.h
parent7f18da4c54210b682e105b0e7be5195c60f98d20 (diff)
downloadillumos-joyent-698f87a48e2e945bfe5493ce168e0d0ae1cedd5c.tar.gz
5051 import mdocml-1.12.3
Reviewed by: Yuri Pankov <yuri.pankov@nexenta.com> Approved by: Rich Lowe <richlowe@richlowe.net>
Diffstat (limited to 'usr/src/cmd/mandoc/config.h')
-rw-r--r--usr/src/cmd/mandoc/config.h20
1 files changed, 12 insertions, 8 deletions
diff --git a/usr/src/cmd/mandoc/config.h b/usr/src/cmd/mandoc/config.h
index 969e1b49bf..7f4f1edf09 100644
--- a/usr/src/cmd/mandoc/config.h
+++ b/usr/src/cmd/mandoc/config.h
@@ -7,10 +7,12 @@
#include <stdio.h>
+#define VERSION "1.12.3"
#define HAVE_STRPTIME
#define HAVE_GETSUBOPT
#define HAVE_STRLCAT
#define HAVE_STRLCPY
+#define HAVE_MMAP
#include <sys/types.h>
@@ -29,14 +31,16 @@
# endif
#endif
-#if defined(__APPLE__)
-# define htobe32(x) OSSwapHostToBigInt32(x)
-# define betoh32(x) OSSwapBigToHostInt32(x)
-# define htobe64(x) OSSwapHostToBigInt64(x)
-# define betoh64(x) OSSwapBigToHostInt64(x)
-#elif defined(__linux__)
-# define betoh32(x) be32toh(x)
-# define betoh64(x) be64toh(x)
+#ifndef HAVE_BETOH64
+# if defined(__APPLE__)
+# define betoh64(x) OSSwapBigToHostInt64(x)
+# define htobe64(x) OSSwapHostToBigInt64(x)
+# elif defined(__sun)
+# define betoh64(x) BE_64(x)
+# define htobe64(x) BE_64(x)
+# else
+# define betoh64(x) be64toh(x)
+# endif
#endif
#ifndef HAVE_STRLCAT