diff --git a/slirp/libslirp.h b/slirp/libslirp.h index a9260afeb3cc7adbfbf0928341f07b693bcc0cbe..b46d1758e0708274d4956619f62136b372dbda27 100644 --- a/slirp/libslirp.h +++ b/slirp/libslirp.h @@ -1,14 +1,6 @@ #ifndef _LIBSLIRP_H #define _LIBSLIRP_H -#ifdef _WIN32 -#include -int inet_aton(const char *cp, struct in_addr *ia); -#else -#include -#include -#endif - #ifdef __cplusplus extern "C" { #endif diff --git a/vl.c b/vl.c index d6f7e8d7878bc41d3b48f50b6f768a22a2f5262d..7313f77e0e6f9defea65e1b933e8269187b05003 100644 --- a/vl.c +++ b/vl.c @@ -42,6 +42,8 @@ #include #include #include +#include +#include #ifdef _BSD #include #ifndef __APPLE__ @@ -63,7 +65,6 @@ #include #include #include -#include #include #include #include @@ -76,6 +77,9 @@ #include #endif #endif +#else +#include +int inet_aton(const char *cp, struct in_addr *ia); #endif #if defined(CONFIG_SLIRP)