diff options
author | Nikos Mavrogiannopoulos <nmav@redhat.com> | 2015-11-24 12:54:32 +0100 |
---|---|---|
committer | Nikos Mavrogiannopoulos <nmav@redhat.com> | 2015-11-24 13:15:43 +0100 |
commit | bc6cc65af2625f3b66a60e7b744c1009f1b896cb (patch) | |
tree | b24c0d8519db78efa1b6681fc61fb9fa0eb1823e /src/socket.c | |
parent | a814e3c0d4c110e63f8efd665c7c5ba124e79ad3 (diff) | |
download | gnutls-bc6cc65af2625f3b66a60e7b744c1009f1b896cb.tar.gz |
tools: don't call endservent in windows
Diffstat (limited to 'src/socket.c')
-rw-r--r-- | src/socket.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/socket.c b/src/socket.c index 8991089a8c..be8a4a1ae8 100644 --- a/src/socket.c +++ b/src/socket.c @@ -33,8 +33,11 @@ #include <stdlib.h> #include <unistd.h> #ifndef _WIN32 -#include <arpa/inet.h> -#include <signal.h> +# include <arpa/inet.h> +# include <signal.h> +#else +# undef endservent +# define endservent() #endif #include <socket.h> #include <c-ctype.h> |