summaryrefslogtreecommitdiff
path: root/usr/src/cmd/mandoc/config.h
diff options
context:
space:
mode:
authorJerry Jelinek <jerry.jelinek@joyent.com>2016-08-18 11:22:02 +0000
committerJerry Jelinek <jerry.jelinek@joyent.com>2016-08-18 11:22:02 +0000
commite2384e44b3213551c4ea3de2e9b54f1a39eeb708 (patch)
tree27853313eac66267f6845d2701dddf640705cd8d /usr/src/cmd/mandoc/config.h
parent2284cf450f099ce8441493d7c9f2c1cb0bbf474f (diff)
parent371584c2eae4cf827fd406ba26c14f021adaaa70 (diff)
downloadillumos-joyent-e2384e44b3213551c4ea3de2e9b54f1a39eeb708.tar.gz
[illumos-gate merge]
commit 371584c2eae4cf827fd406ba26c14f021adaaa70 7243 update mdocml to 1.13.4 commit 7a8b8fd18ff115f0caa89183db5373afb568b630 5166 sendmail package should be replaceable (followup)
Diffstat (limited to 'usr/src/cmd/mandoc/config.h')
-rw-r--r--usr/src/cmd/mandoc/config.h46
1 files changed, 8 insertions, 38 deletions
diff --git a/usr/src/cmd/mandoc/config.h b/usr/src/cmd/mandoc/config.h
index 040fc56e39..a9106ae4f4 100644
--- a/usr/src/cmd/mandoc/config.h
+++ b/usr/src/cmd/mandoc/config.h
@@ -1,58 +1,28 @@
#ifndef MANDOC_CONFIG_H
#define MANDOC_CONFIG_H
-#if defined(__linux__) || defined(__MINT__)
-#define _GNU_SOURCE /* See test-*.c what needs this. */
-#endif
-
#include <sys/types.h>
#include <stdio.h>
-#define HAVE_DIRENT_NAMLEN 0
-#define HAVE_FGETLN 0
-#define HAVE_FTS 0
-#define HAVE_GETSUBOPT 1
+#define HAVE_ERR 1
+#define HAVE_MANPATH 1
#define HAVE_MMAP 1
+#define HAVE_OHASH 0
+#define HAVE_PLEDGE 0
+#define HAVE_PROGNAME 1
#define HAVE_REALLOCARRAY 0
-#define HAVE_STRCASESTR 1
-#define HAVE_STRLCAT 1
-#define HAVE_STRLCPY 1
+#define HAVE_SANDBOX_INIT 0
+#define HAVE_SQLITE3 0
#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
-# 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
+#define BINM_MAKEWHATIS "man -w"
-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);
-extern size_t strlcpy(char *, const char *, size_t);
-extern char *strsep(char **, const char *);
extern long long strtonum(const char *, long long, long long, const char **);
#endif /* MANDOC_CONFIG_H */