changeset 73973:a36e68eb4ae8

[WINDOWSNT]: Undef _WINSOCKAPI_ and _WINSOCK_H.
author Juanma Barranquero <lekktu@gmail.com>
date Mon, 13 Nov 2006 10:59:04 +0000
parents 98d8e09fad2d
children 5c5306b4cb49
files lib-src/emacsclient.c
diffstat 1 files changed, 8 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/lib-src/emacsclient.c	Mon Nov 13 10:25:40 2006 +0000
+++ b/lib-src/emacsclient.c	Mon Nov 13 10:59:04 2006 +0000
@@ -28,10 +28,17 @@
 
 #ifdef WINDOWSNT
 
+/* config.h defines these, which disables sockets altogether! */
+# undef _WINSOCKAPI_
+# undef _WINSOCK_H
+
 # include <malloc.h>
 # include <stdlib.h>
 
-# define HAVE_SOCKETS
+# ifndef HAVE_SOCKETS
+#  define HAVE_SOCKETS
+# endif
+
 # define HAVE_INET_SOCKETS
 # define NO_SOCKETS_IN_FILE_SYSTEM