-lsocket
when it’s required for using *ifaddrs
functions.
ACK 4783115fd4cccb46a7f8c592b34fa7c094c29410, I have reviewed the code and it looks OK, I agree it can be merged.
Did not test it on Illumos/SmartOS.
The ./configure
output diff:
0 checking sys/resources.h presence... no
1 checking for sys/resources.h... no
2 checking whether getifaddrs is declared... yes
3+checking whether ifaddrs funcs can be used without link library... yes
4 checking whether freeifaddrs is declared... yes
5+checking whether ifaddrs funcs can be used without link library... yes
6 checking whether strnlen is declared... yes
7 checking whether fork is declared... yes
8 checking whether setsid is declared... yes
It seems we could have -lsocket
twice in the LIBS
:)