projects
/
darkstat
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ce7be0c
)
Check for getifaddrs() in libc before ifaddrs.h
author
Emil Mikulic
<emikulic@gmail.com>
Tue, 6 Aug 2013 09:03:00 +0000
(19:03 +1000)
committer
Emil Mikulic
<emikulic@gmail.com>
Thu, 8 Aug 2013 10:31:07 +0000
(20:31 +1000)
Reported by: Andrej Kralj
He found a platform where the header exists but the library code doesn't.
configure.ac
patch
|
blob
|
history
diff --git
a/configure.ac
b/configure.ac
index
98d4cf0
..
a37a404
100644
(file)
--- a/
configure.ac
+++ b/
configure.ac
@@
-153,7
+153,10
@@
AC_SEARCH_LIBS(hstrerror, [resolv], [],
AC_CHECK_HEADERS(sys/filio.h)
# This is the modern way. Older systems use the ioctl method.
-AC_CHECK_HEADERS(ifaddrs.h)
+AC_SEARCH_LIBS(getifaddrs, [c],
+ [AC_CHECK_HEADERS(ifaddrs.h)])
+
+
# Some OSes (Solaris) need sys/sockio.h for SIOCGIFADDR
AC_CHECK_HEADERS(sys/sockio.h)