HCoop
/
bpt
/
emacs.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
[WINDOWSNT]: Undef _WINSOCKAPI_ and _WINSOCK_H.
[bpt/emacs.git]
/
lib-src
/
emacsclient.c
diff --git
a/lib-src/emacsclient.c
b/lib-src/emacsclient.c
index
7cf703d
..
a22fd1a
100644
(file)
--- a/
lib-src/emacsclient.c
+++ b/
lib-src/emacsclient.c
@@
-28,10
+28,17
@@
Boston, MA 02110-1301, USA. */
#ifdef WINDOWSNT
#ifdef WINDOWSNT
+/* config.h defines these, which disables sockets altogether! */
+# undef _WINSOCKAPI_
+# undef _WINSOCK_H
+
# include <malloc.h>
# include <stdlib.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
# define HAVE_INET_SOCKETS
# define NO_SOCKETS_IN_FILE_SYSTEM