summaryrefslogtreecommitdiffstats
path: root/src/lib/rpc/clnt_simple.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/rpc/clnt_simple.c')
-rw-r--r--src/lib/rpc/clnt_simple.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/lib/rpc/clnt_simple.c b/src/lib/rpc/clnt_simple.c
index d2434a13c..65ae5c176 100644
--- a/src/lib/rpc/clnt_simple.c
+++ b/src/lib/rpc/clnt_simple.c
@@ -45,11 +45,12 @@ static char sccsid[] = "@(#)clnt_simple.c 1.35 87/08/11 Copyr 1984 Sun Micro";
#include <sys/socket.h>
#include <netdb.h>
#include <string.h>
+#include <port-sockets.h>
#include "autoconf.h"
static struct callrpc_private {
CLIENT *client;
- int socket;
+ SOCKET socket;
int oldprognum, oldversnum, valid;
char *oldhost;
} *callrpc_private;
@@ -89,7 +90,7 @@ callrpc(
/* reuse old client */
} else {
crp->valid = 0;
- (void)close(crp->socket);
+ (void)closesocket(crp->socket);
crp->socket = RPC_ANYSOCK;
if (crp->client) {
clnt_destroy(crp->client);