#ifndef CONFIG_QEMU
#include "version.h"
#endif
-#include "config.h"
+#include "config-host.h"
#include "slirp_config.h"
#ifdef _WIN32
# include <windows.h>
# include <winsock2.h>
+# include <ws2tcpip.h>
# include <sys/timeb.h>
# include <iphlpapi.h>
# include <sys/time.h>
# include <time.h>
#else
-# if HAVE_SYS_TIME_H
+# ifdef HAVE_SYS_TIME_H
# include <sys/time.h>
# else
# include <time.h>
#include <sys/uio.h>
#endif
-#ifndef _P
+#undef _P
#ifndef NO_PROTOTYPES
# define _P(x) x
#else
# define _P(x) ()
#endif
-#endif
#ifndef _WIN32
#include <netinet/in.h>
void lprint _P((const char *, ...));
-extern int do_echo;
-
-#if SIZEOF_CHAR_P == 4
-# define insque_32 insque
-# define remque_32 remque
-#else
- inline void insque_32 _P((void *, void *));
- inline void remque_32 _P((void *));
-#endif
-
#ifndef _WIN32
#include <netdb.h>
#endif