Fix static linking / lack of htonl problem. Release 4.0.10.
[portablexdr.git] / xdr_mem.c
index 6380c25..701cad2 100644 (file)
--- a/xdr_mem.c
+++ b/xdr_mem.c
@@ -44,10 +44,6 @@ static char sccsid[] = "@(#)xdr_mem.c 1.19 87/08/11 Copyr 1984 Sun Micro";
 
 #include <config.h>
 
-#ifdef HAVE_WINSOCK2_H
-#include <winsock2.h>
-#endif
-
 #ifdef HAVE_ARPA_INET_H
 #include <arpa/inet.h>
 #endif
@@ -57,6 +53,8 @@ static char sccsid[] = "@(#)xdr_mem.c 1.19 87/08/11 Copyr 1984 Sun Micro";
 #include <rpc/types.h>
 #include <rpc/xdr.h>
 
+#include "byteswap.h"
+
 static bool_t  xdrmem_getlong();
 static bool_t  xdrmem_putlong();
 static bool_t  xdrmem_getbytes();