diff --git a/sim_sock.c b/sim_sock.c index 90a2a80d..8f714568 100644 --- a/sim_sock.c +++ b/sim_sock.c @@ -136,6 +136,7 @@ static struct sock_errors { {WSAECONNREFUSED, "Connection refused"}, {WSAEHOSTUNREACH, "No route to host"}, {WSAEADDRINUSE, "Address already in use "}, + {WSAEACCES, "Permission denied"}, {0, NULL} }; diff --git a/sim_sock.h b/sim_sock.h index 76dbe732..17c29afd 100644 --- a/sim_sock.h +++ b/sim_sock.h @@ -66,6 +66,7 @@ #define WSAECONNREFUSED ECONNREFUSED #define WSAEHOSTUNREACH EHOSTUNREACH #define WSAEADDRINUSE EADDRINUSE +#define WSAEACCES EACCES #define INVALID_SOCKET ((SOCKET)-1) #define SOCKET_ERROR -1 #include /* for fcntl, getpid */