diff options
Diffstat (limited to 'usr/src/cmd/mandoc/config.h')
-rw-r--r-- | usr/src/cmd/mandoc/config.h | 66 |
1 files changed, 32 insertions, 34 deletions
diff --git a/usr/src/cmd/mandoc/config.h b/usr/src/cmd/mandoc/config.h index 7f4f1edf09..040fc56e39 100644 --- a/usr/src/cmd/mandoc/config.h +++ b/usr/src/cmd/mandoc/config.h @@ -1,20 +1,35 @@ -#ifndef MANDOC_CONFIG_H -#define MANDOC_CONFIG_H +#ifndef MANDOC_CONFIG_H +#define MANDOC_CONFIG_H #if defined(__linux__) || defined(__MINT__) -# define _GNU_SOURCE /* strptime(), getsubopt() */ +#define _GNU_SOURCE /* See test-*.c what needs this. */ #endif +#include <sys/types.h> #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> +#define HAVE_DIRENT_NAMLEN 0 +#define HAVE_FGETLN 0 +#define HAVE_FTS 0 +#define HAVE_GETSUBOPT 1 +#define HAVE_MMAP 1 +#define HAVE_REALLOCARRAY 0 +#define HAVE_STRCASESTR 1 +#define HAVE_STRLCAT 1 +#define HAVE_STRLCPY 1 +#define HAVE_STRPTIME 1 +#define HAVE_STRSEP 1 +#define HAVE_STRTONUM 0 +#define HAVE_WCHAR 1 +#define HAVE_SQLITE3 0 +#define HAVE_SQLITE3_ERRSTR 1 +#define HAVE_OHASH 1 +#define HAVE_MANPATH 0 + +#define BINM_APROPOS "apropos" +#define BINM_MAN "man" +#define BINM_WHATIS "whatis" +#define BINM_MAKEWHATIS "makewhatis" #if !defined(__BEGIN_DECLS) # ifdef __cplusplus @@ -31,30 +46,13 @@ # 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 char *fgetln(FILE *, size_t *); +extern int getsubopt(char **, char * const *, char **); +extern void *reallocarray(void *, size_t, size_t); +extern char *strcasestr(const char *, const char *); 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 +extern char *strsep(char **, const char *); +extern long long strtonum(const char *, long long, long long, const char **); #endif /* MANDOC_CONFIG_H */ |