Loading slirp/libslirp.h +0 −8 Original line number Diff line number Diff line #ifndef _LIBSLIRP_H #define _LIBSLIRP_H #ifdef _WIN32 #include <winsock2.h> int inet_aton(const char *cp, struct in_addr *ia); #else #include <sys/select.h> #include <arpa/inet.h> #endif #ifdef __cplusplus extern "C" { #endif Loading vl.c +5 −1 Original line number Diff line number Diff line Loading @@ -42,6 +42,8 @@ #include <netinet/in.h> #include <dirent.h> #include <netdb.h> #include <sys/select.h> #include <arpa/inet.h> #ifdef _BSD #include <sys/stat.h> #ifndef __APPLE__ Loading @@ -63,7 +65,6 @@ #include <sys/stat.h> #include <sys/ethernet.h> #include <sys/sockio.h> #include <arpa/inet.h> #include <netinet/arp.h> #include <netinet/in.h> #include <netinet/in_systm.h> Loading @@ -76,6 +77,9 @@ #include <stropts.h> #endif #endif #else #include <winsock2.h> int inet_aton(const char *cp, struct in_addr *ia); #endif #if defined(CONFIG_SLIRP) Loading Loading
slirp/libslirp.h +0 −8 Original line number Diff line number Diff line #ifndef _LIBSLIRP_H #define _LIBSLIRP_H #ifdef _WIN32 #include <winsock2.h> int inet_aton(const char *cp, struct in_addr *ia); #else #include <sys/select.h> #include <arpa/inet.h> #endif #ifdef __cplusplus extern "C" { #endif Loading
vl.c +5 −1 Original line number Diff line number Diff line Loading @@ -42,6 +42,8 @@ #include <netinet/in.h> #include <dirent.h> #include <netdb.h> #include <sys/select.h> #include <arpa/inet.h> #ifdef _BSD #include <sys/stat.h> #ifndef __APPLE__ Loading @@ -63,7 +65,6 @@ #include <sys/stat.h> #include <sys/ethernet.h> #include <sys/sockio.h> #include <arpa/inet.h> #include <netinet/arp.h> #include <netinet/in.h> #include <netinet/in_systm.h> Loading @@ -76,6 +77,9 @@ #include <stropts.h> #endif #endif #else #include <winsock2.h> int inet_aton(const char *cp, struct in_addr *ia); #endif #if defined(CONFIG_SLIRP) Loading