[win32] - make it compile on win32
[deb_libnfs.git] / lib / pdu.c
index 64a4af8e2eb68562d964096f8b8be194f9236cd9..d7426ced53c82a50748b243d130b09ad2c1dab06 100644 (file)
--- a/lib/pdu.c
+++ b/lib/pdu.c
    You should have received a copy of the GNU Lesser General Public License
    along with this program; if not, see <http://www.gnu.org/licenses/>.
 */
-
-#if defined(WIN32)
-#include <winsock2.h>
+#ifdef WIN32
+#include "win32_compat.h"
+#ifndef MSG_DONTWAIT
 #define MSG_DONTWAIT 0
+#endif
 #else
 #include <strings.h>
-#endif
+#endif/*WIN32*/
 
 #include <stdio.h>
 #include <stdlib.h>