=================================================================== RCS file: /cvs/mandoc/Attic/config.h.post,v retrieving revision 1.6 retrieving revision 1.6.2.2 diff -u -p -r1.6 -r1.6.2.2 --- mandoc/Attic/config.h.post 2012/06/08 10:47:17 1.6 +++ mandoc/Attic/config.h.post 2013/10/03 00:46:36 1.6.2.2 @@ -15,6 +15,15 @@ # endif #endif +#ifndef HAVE_BETOH64 +# if defined(__APPLE__) +# define betoh64(x) OSSwapBigToHostInt64(x) +# define htobe64(x) OSSwapHostToBigInt64(x) +# else +# define betoh64(x) be64toh(x) +# endif +#endif + #ifndef HAVE_STRLCAT extern size_t strlcat(char *, const char *, size_t); #endif