Return to config.h.post CVS log | Up to [cvsweb.bsd.lv] / mandoc |
File: [cvsweb.bsd.lv] / mandoc / Attic / config.h.post (download)
Revision 1.6.2.3, Thu Oct 10 23:43:04 2013 UTC (10 years, 6 months ago) by schwarze
On __sun, use <sys/byteorder.h>, BE_64(x), and <db_185.h>. Thanks to Thomas Klausner <wiz at NetBSD dot org> for providing failing SmartOS build logs such that i could write this patch without access to a __sun system and for confirming that these patches help. |
#include <sys/types.h> #if !defined(__BEGIN_DECLS) # ifdef __cplusplus # define __BEGIN_DECLS extern "C" { # else # define __BEGIN_DECLS # endif #endif #if !defined(__END_DECLS) # ifdef __cplusplus # define __END_DECLS } # else # define __END_DECLS # endif #endif #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 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_GETSUBOPT extern int getsubopt(char **, char * const *, char **); extern char *suboptarg; #endif #ifndef HAVE_FGETLN extern char *fgetln(FILE *, size_t *); #endif #endif /* MANDOC_CONFIG_H */