@@ -12,23 +12,33 @@ because it can't detect the network libraries. */ # define HAVE_GETHOSTBYNAME 1 # define HAVE_INET_ADDR 1 # define HAVE_SOCKET 1 # endif +# define sleep(x) Sleep((x) * 1000) #else /* MSVC++ configuration follows */ # undef HAVE_UNISTD_H # define HAVE_STDLIB_H 1 # define HAVE_WINDOWS_H 1 # define HAVE_STDARG_H 1 +# define HAVE_WINSVC_H 1 +# define HAVE_WINSOCK2_H 1 +# define HAVE_WINDOWSX_H 1 #endif /* __MINGW32__ */ #ifdef HAVE_WINDOWS_H # include #endif +#ifdef HAVE_WINDOWSX_H +# include +#endif #ifdef HAVE_WINSOCK2_H # include #endif +#ifdef HAVE_WINSVC_H +# include +#endif #define _USE_WIN32_ 1 #endif /* _LOCAL_WIN32_H */