From bc28de715d58aa574f93a5a2a28a72ca8bb724dc Mon Sep 17 00:00:00 2001 From: Juanma Barranquero Date: Mon, 13 Nov 2006 10:59:04 +0000 Subject: [PATCH] [WINDOWSNT]: Undef _WINSOCKAPI_ and _WINSOCK_H. --- lib-src/emacsclient.c | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/lib-src/emacsclient.c b/lib-src/emacsclient.c index 7cf703d40d1..a22fd1a8133 100644 --- a/lib-src/emacsclient.c +++ b/lib-src/emacsclient.c @@ -28,10 +28,17 @@ Boston, MA 02110-1301, USA. */ #ifdef WINDOWSNT +/* config.h defines these, which disables sockets altogether! */ +# undef _WINSOCKAPI_ +# undef _WINSOCK_H + # include # include -# define HAVE_SOCKETS +# ifndef HAVE_SOCKETS +# define HAVE_SOCKETS +# endif + # define HAVE_INET_SOCKETS # define NO_SOCKETS_IN_FILE_SYSTEM -- 2.39.5