Fix static linking / lack of htonl problem. Release 4.0.10.
[portablexdr.git] / xdr_stdio.c
index 8e930be..8c9b039 100644 (file)
@@ -45,10 +45,6 @@ static char sccsid[] = "@(#)xdr_stdio.c 1.16 87/08/11 Copyr 1984 Sun Micro";
 
 #include <stdio.h>
 
-#ifdef HAVE_WINSOCK2_H
-#include <winsock2.h>
-#endif
-
 #ifdef HAVE_ARPA_INET_H
 #include <arpa/inet.h>
 #endif
@@ -56,6 +52,8 @@ static char sccsid[] = "@(#)xdr_stdio.c 1.16 87/08/11 Copyr 1984 Sun Micro";
 #include <rpc/types.h>
 #include <rpc/xdr.h>
 
+#include "byteswap.h"
+
 #if defined(__CYGWIN32__) || defined(__MINGW32__)
 #include <stdlib.h>
 #include <fcntl.h>