summaryrefslogtreecommitdiffstats
path: root/configure
diff options
context:
space:
mode:
authorRoy Marples <roy@marples.name>2014-11-10 16:56:32 +0000
committerRoy Marples <roy@marples.name>2014-11-10 16:56:32 +0000
commitbc09d81de28883995da42e6de2640648275df151 (patch)
tree729a0329d6b4bb492bbd529bb929a7ea30ab0245 /configure
parent76dc9cd65d25efe05464361db40456245f113a7b (diff)
downloaddhcpcd-bc09d81de28883995da42e6de2640648275df151.tar.xz
TAILQ is now inlcuded via config.h either via sys/queue.h or compat/queue.h.
This allows dhcpcd to compile on systems that do not even supply sys/queue.h, such as the musl C library. Thanks to Juan RP.
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure2
1 files changed, 2 insertions, 0 deletions
diff --git a/configure b/configure
index b64d0725..59d2eddc 100755
--- a/configure
+++ b/configure
@@ -687,6 +687,8 @@ EOF
fi
if [ "$TAILQ_FOREACH_SAFE" = no -o "$TAILQ_CONCAT" = no ]; then
echo "#include \"compat/queue.h\"">>$CONFIG_H
+else
+ echo "#include <sys/queue.h>" >>$CONFIG_H
fi
if [ -z "$POSIX_SPAWN" ]; then