aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/config.h.post
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@openbsd.org>2014-01-04 13:49:22 +0000
committerIngo Schwarze <schwarze@openbsd.org>2014-01-04 13:49:22 +0000
commitf2e1d1437abddaa097ebff0dcf3f147764f94df0 (patch)
tree5f71480a44f99f88e85d83d45d023ed6478fad11 /config.h.post
parentd249205f3e61b82253dbfabd21da3c5ea1fe83fb (diff)
downloadmandoc-f2e1d1437abddaa097ebff0dcf3f147764f94df0.tar.gz
mandoc-f2e1d1437abddaa097ebff0dcf3f147764f94df0.tar.zst
mandoc-f2e1d1437abddaa097ebff0dcf3f147764f94df0.zip
Merge strnlen(3) configuration bits.
Diffstat (limited to 'config.h.post')
-rw-r--r--config.h.post19
1 files changed, 10 insertions, 9 deletions
diff --git a/config.h.post b/config.h.post
index ab9d8c6b..674c8c2a 100644
--- a/config.h.post
+++ b/config.h.post
@@ -1,5 +1,3 @@
-#include <sys/types.h>
-
#if !defined(__BEGIN_DECLS)
# ifdef __cplusplus
# define __BEGIN_DECLS extern "C" {
@@ -27,6 +25,13 @@
# endif
#endif
+#ifndef HAVE_FGETLN
+extern char *fgetln(FILE *, size_t *);
+#endif
+#ifndef HAVE_GETSUBOPT
+extern int getsubopt(char **, char * const *, char **);
+extern char *suboptarg;
+#endif
#ifndef HAVE_STRCASESTR
extern char *strcasestr(const char *, const char *);
#endif
@@ -36,15 +41,11 @@ extern size_t strlcat(char *, const char *, size_t);
#ifndef HAVE_STRLCPY
extern size_t strlcpy(char *, const char *, size_t);
#endif
+#ifndef HAVE_STRNLEN
+extern size_t strnlen(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 **);
-extern char *suboptarg;
-#endif
-#ifndef HAVE_FGETLN
-extern char *fgetln(FILE *, size_t *);
-#endif
#endif /* MANDOC_CONFIG_H */