--- parser3/src/include/pa_config_includes.h 2013/07/21 21:01:03 1.40 +++ parser3/src/include/pa_config_includes.h 2013/07/22 15:17:05 1.42 @@ -129,13 +129,17 @@ # include #endif +#ifdef HAVE_SYS_WAIT_H +# include +#endif + #ifdef HAVE_SYS_SOCKET_H # include -#else -# if defined(HAVE_WINSOCK_H) && !defined(_MSC_VER) && !defined(CYGWIN) -# include -# endif +#endif + +#ifdef HAVE_WINSOCK_H +# include #endif #ifdef HAVE_NETINET_IN_H @@ -150,7 +154,6 @@ # include #endif -// must go anywhere after winsock [cygwin time.h checks for already inclusion of winsock.h] #if TIME_WITH_SYS_TIME # include