common: fix includes
Don't rely on c-ares to pull in the headers for inet_addr, net_pton and inet_ntop. c-ares 1.7.4 did but 1.7.5 does not.
This commit is contained in:
parent
083c97e28b
commit
b288afdf14
@ -26,6 +26,10 @@
|
||||
#include <stddef.h> /* NULL */
|
||||
#include <string.h> /* memset */
|
||||
|
||||
#include <sys/socket.h>
|
||||
#include <netinet/in.h>
|
||||
#include <arpa/inet.h>
|
||||
|
||||
/* use inet_pton from c-ares if necessary */
|
||||
#include "ares_config.h"
|
||||
#include "ares/inet_net_pton.h"
|
||||
|
||||
Loading…
Reference in New Issue
Block a user