diff options
Diffstat (limited to 'usr/src/cmd/mandoc/config.h')
-rw-r--r-- | usr/src/cmd/mandoc/config.h | 20 |
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 |