aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/configure
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@openbsd.org>2015-02-16 14:56:22 +0000
committerIngo Schwarze <schwarze@openbsd.org>2015-02-16 14:56:22 +0000
commitde65759ae10a0dde57d4be5019cd5abfb3dfe4bc (patch)
treecdf4c54edc5f0efad3b6f8b9f9b5d4778f221468 /configure
parentcc64f006bae2e1c1378f5d14063a116e6ef4aaaf (diff)
downloadmandoc-de65759ae10a0dde57d4be5019cd5abfb3dfe4bc.tar.gz
mandoc-de65759ae10a0dde57d4be5019cd5abfb3dfe4bc.tar.zst
mandoc-de65759ae10a0dde57d4be5019cd5abfb3dfe4bc.zip
strtonum(3) compat glue
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure6
1 files changed, 6 insertions, 0 deletions
diff --git a/configure b/configure
index e7cb2e0b..c09fda16 100755
--- a/configure
+++ b/configure
@@ -56,6 +56,7 @@ HAVE_STRLCAT=
HAVE_STRLCPY=
HAVE_STRPTIME=
HAVE_STRSEP=
+HAVE_STRTONUM=
HAVE_WCHAR=
HAVE_SQLITE3=
@@ -177,6 +178,7 @@ runtest strlcat STRLCAT || true
runtest strlcpy STRLCPY || true
runtest strptime STRPTIME || true
runtest strsep STRSEP || true
+runtest strtonum STRTONUM || true
runtest wchar WCHAR || true
# --- sqlite3 ---
@@ -291,6 +293,7 @@ cat << __HEREDOC__
#define HAVE_STRLCPY ${HAVE_STRLCPY}
#define HAVE_STRPTIME ${HAVE_STRPTIME}
#define HAVE_STRSEP ${HAVE_STRSEP}
+#define HAVE_STRTONUM ${HAVE_STRTONUM}
#define HAVE_WCHAR ${HAVE_WCHAR}
#define HAVE_SQLITE3 ${HAVE_SQLITE3}
#define HAVE_SQLITE3_ERRSTR ${HAVE_SQLITE3_ERRSTR}
@@ -343,6 +346,9 @@ __HEREDOC__
[ ${HAVE_STRSEP} -eq 0 ] && \
echo "extern char *strsep(char **, const char *);"
+[ ${HAVE_STRTONUM} -eq 0 ] && \
+ echo "extern long long strtonum(const char *, long long, long long, const char **);"
+
echo
echo "#endif /* MANDOC_CONFIG_H */"