WIN32: get rid of some ifdefs
[deb_libnfs.git] / lib / init.c
index 80368c2915f99e9f5171d6590fcab66a96144022..ecfdcf58ad9d0c8551ec13eb1c1d8586383f81e0 100644 (file)
@@ -14,6 +14,7 @@
 
 #ifdef WIN32
 #include "win32_compat.h"
+#define close closesocket
 #else
 #include <unistd.h>
 #include <strings.h>
@@ -202,11 +203,7 @@ void rpc_destroy_context(struct rpc_context *rpc)
        rpc->auth =NULL;
 
        if (rpc->fd != -1) {
-#if defined(WIN32)
-               closesocket(rpc->fd);
-#else
                close(rpc->fd);
-#endif
        }
 
        if (rpc->encodebuf != NULL) {