summaryrefslogtreecommitdiffstats
path: root/configure
diff options
context:
space:
mode:
authorRoy Marples <roy@marples.name>2014-12-20 14:11:38 +0000
committerRoy Marples <roy@marples.name>2014-12-20 14:11:38 +0000
commit71d20c8a1228f15884f3120f6db19798075612e2 (patch)
tree2a5ef7f5deb3370329a2f451eeb706b10576d77c /configure
parent7329549972eb95b1cf67ee033badedd50e5b9e80 (diff)
downloaddhcpcd-71d20c8a1228f15884f3120f6db19798075612e2.tar.xz
Fix compile on QNX. Thanks to Will Miles.
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure3
1 files changed, 3 insertions, 0 deletions
diff --git a/configure b/configure
index f250d018..8bad7d8f 100755
--- a/configure
+++ b/configure
@@ -506,6 +506,9 @@ if $XCC _inet_ntoa.c -o _inet_ntoa 2>&3; then
elif $XCC _inet_ntoa.c -lnsl -o _inet_ntoa 2>&3; then
echo "yes (-lnsl)"
echo "LDADD+= -lnsl" >>$CONFIG_MK
+elif $XCC _inet_ntoa.c -lsocket -o _inet_ntoa 2>&3; then
+ echo "yes (-lsocket)"
+ echo "LDADD+= -lsocket" >>$CONFIG_MK
else
echo "no"
echo "libc support for inet_ntoa is required - aborting" >&2