Solaris 2.6 has the prototypes for inet_pton() and inet_ntop() in

resolv.h.
This commit is contained in:
Todd C. Miller
2015-07-09 10:11:25 -06:00
parent b73d96804b
commit 43a57126ea
7 changed files with 33 additions and 0 deletions

View File

@@ -29,6 +29,10 @@
#include <unistd.h>
#include <netinet/in.h>
#include <arpa/inet.h>
#ifdef NEED_RESOLV_H
# include <arpa/nameser.h>
# include <resolv.h>
#endif /* NEED_RESOLV_H */
#include <netdb.h>
#include <errno.h>