Skip to content
Snippets Groups Projects
Commit b6c5ca18 authored by Adrien Béraud's avatar Adrien Béraud
Browse files

ip utils: move includes to implementation

Change-Id: Ic7745c129827bc33062d5b428fe9e376a1b22b59
parent 9b99e879
No related branches found
No related tags found
No related merge requests found
......@@ -37,6 +37,14 @@
#ifdef _WIN32
#define InetPtonA inet_pton
WINSOCK_API_LINKAGE INT WSAAPI InetPtonA(INT Family, LPCSTR pStringBuf, PVOID pAddr);
#else
#include <arpa/inet.h>
#include <arpa/nameser.h>
#include <resolv.h>
#include <netdb.h>
#include <netinet/ip.h>
#include <net/if.h>
#include <sys/ioctl.h>
#endif
#ifndef HOST_NAME_MAX
......
......@@ -45,14 +45,8 @@ extern "C" {
#undef interface
#endif
#else
#include <arpa/inet.h>
#include <netinet/in.h>
#include <arpa/nameser.h>
#include <resolv.h>
#include <netdb.h>
#include <netinet/ip.h>
#include <net/if.h>
#include <sys/ioctl.h>
#include <sys/socket.h>
#include <netinet/in.h>
#endif
#include <string>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment