]> git.eshelyaron.com Git - emacs.git/commitdiff
[WINDOWSNT]: Undef _WINSOCKAPI_ and _WINSOCK_H.
authorJuanma Barranquero <lekktu@gmail.com>
Mon, 13 Nov 2006 10:59:04 +0000 (10:59 +0000)
committerJuanma Barranquero <lekktu@gmail.com>
Mon, 13 Nov 2006 10:59:04 +0000 (10:59 +0000)
lib-src/emacsclient.c

index 7cf703d40d12e45cae53c23221cc4e136cf37724..a22fd1a81338bda122d8adf62386fdf1b8da1c92 100644 (file)
@@ -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 <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