=================================================================== RCS file: /cvs/mandoc/Attic/config.h.post,v retrieving revision 1.5 retrieving revision 1.7 diff -u -p -r1.5 -r1.7 --- mandoc/Attic/config.h.post 2012/03/24 06:23:14 1.5 +++ mandoc/Attic/config.h.post 2013/12/31 23:03:47 1.7 @@ -15,25 +15,17 @@ # 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__) || defined(__FreeBSD__) || defined(__NetBSD__) || defined(__DragonFly__) -# define betoh32(x) be32toh(x) -# define betoh64(x) be64toh(x) -#elif defined(__OpenBSD__) -/* Nothing */ -#else -/* XXX Fallback */ +#ifndef HAVE_STRCASESTR +extern char *strcasestr(const char *, const char *); #endif - #ifndef HAVE_STRLCAT extern size_t strlcat(char *, const char *, size_t); #endif #ifndef HAVE_STRLCPY extern size_t strlcpy(char *, const char *, size_t); +#endif +#ifndef HAVE_STRSEP +extern char *strsep(char **, const char *); #endif #ifndef HAVE_GETSUBOPT extern int getsubopt(char **, char * const *, char **);