aboutsummaryrefslogtreecommitdiff
path: root/configure
diff options
context:
space:
mode:
authorOmar Polo <op@omarpolo.com>2021-01-22 17:00:56 +0000
committerOmar Polo <op@omarpolo.com>2021-01-22 17:00:56 +0000
commit7e262563948fcaeea143e6c7c23b6a300010eec5 (patch)
tree32d92af278b34baa1f2043ae71b7d07131edad27 /configure
parent3527b7a58a5f228a73f73ba74bc4ff86f7305a60 (diff)
fixing compat compilation
include headers if needed and include config.h
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure8
1 files changed, 8 insertions, 0 deletions
diff --git a/configure b/configure
index 97c5dd8..359143f 100755
--- a/configure
+++ b/configure
@@ -272,6 +272,14 @@ cat <<__HEREDOC__
__HEREDOC__
+[ ${HAVE_VASPRINTF} -eq 0 ] && echo "#include <stdarg.h>"
+
+[ ${HAVE_EXPLICIT_BZERO} -eq 0 -o \
+ ${HAVE_RECALLOCARRAY} -eq 0 -o \
+ ${HAVE_STRLCAT} -eq 0 -o \
+ ${HAVE_STRLCPY} -eq 0 -o \
+ ${HAVE_STRTONUM} -eq 0 ] && echo "#include <stddef.h>"
+
if [ ${HAVE_ERR} -eq 0 ]; then
echo "extern void err(int, const char*, ...);"
echo "extern void errx(int, const char*, ...);"