NLnetLabs / ldns

LDNS is a DNS library that facilitates DNS tool programming
https://nlnetlabs.nl/ldns
BSD 3-Clause "New" or "Revised" License
301 stars 99 forks source link

Add additional search libs for inet_ntop and inet_pton #60

Closed noloader closed 4 years ago

noloader commented 4 years ago

Modern Linux provides inet_ntop in -lsocket. Modern OS X provides inet_ntop in -lc. Modern Solaris provides inet_ntop in -lsocket -lnsl. Older Solaris provides inet_ntop in -lresolv.

Ditto for inet_pton.

Tested OK on Ubuntu 18.04, OS X 10.9, OS X 10.5, and Solaris 11.3.

wtoorop commented 4 years ago

Excellent! Thanks!