From 492a274fd712e4589669254be327897868e44812 Mon Sep 17 00:00:00 2001 From: Omar Polo Date: Thu, 7 Oct 2021 11:36:25 +0000 Subject: add compat for sys/tree.h --- configure | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'configure') diff --git a/configure b/configure index 93b34d1..81f670e 100755 --- a/configure +++ b/configure @@ -254,6 +254,7 @@ runtest setproctitle SETPROCTITLE || true runtest strlcat STRLCAT || true runtest strlcpy STRLCPY || true runtest strtonum STRTONUM || true +runtest tree_h TREE_H || true runtest vasprintf VASPRINTF "" -D_GNU_SOURCE || true if [ ${HAVE_LIBTLS} -eq 0 ]; then @@ -274,7 +275,7 @@ if [ ${HAVE_LIBEVENT} -eq 0 ]; then exit 1 fi -if [ ${HAVE_QUEUE_H} -eq 0 -o ${HAVE_IMSG} -eq 0 ]; then +if [ ${HAVE_QUEUE_H} -eq 0 -o ${HAVE_IMSG} -eq 0 -o ${HAVE_TREE_H} -eq 0 ]; then CFLAGS="${CFLAGS} -I ${PWD}/compat" fi @@ -302,6 +303,12 @@ else echo "#include " fi +if [ ${HAVE_TREE_H} -eq 1 ]; then + echo "#include " +else + echo "#include " +fi + echo "#include " echo "#include " echo "#include " @@ -331,6 +338,7 @@ cat <<__HEREDOC__ #define HAVE_STRLCAT ${HAVE_STRLCAT} #define HAVE_STRLCPY ${HAVE_STRLCPY} #define HAVE_STRTONUM ${HAVE_STRTONUM} +#define HAVE_TREE_H ${HAVE_TREE_H} #define HAVE_VASPRINTF ${HAVE_VASPRINTF} __HEREDOC__ -- cgit v1.2.3