summaryrefslogtreecommitdiff
path: root/gdb/ser-tcp.c
diff options
context:
space:
mode:
authorMark Mitchell <mark@codesourcery.com>2005-07-24 23:02:41 +0000
committerMark Mitchell <mark@codesourcery.com>2005-07-24 23:02:41 +0000
commit933e8e3009c675fa2882d8d6c2a39202ff487189 (patch)
tree6b4e9bbea0a76aae76f6f7b34fd84530a5552537 /gdb/ser-tcp.c
parent8383352efd3bc07eee9fe5748c679866b8e74eb0 (diff)
downloadgdb-933e8e3009c675fa2882d8d6c2a39202ff487189.tar.gz
* ser-tcp.c (close): Define as a function-like macro on MinGW.
Diffstat (limited to 'gdb/ser-tcp.c')
-rw-r--r--gdb/ser-tcp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/ser-tcp.c b/gdb/ser-tcp.c
index 5b0b4311d47..c91e83cab41 100644
--- a/gdb/ser-tcp.c
+++ b/gdb/ser-tcp.c
@@ -39,7 +39,7 @@
#ifdef USE_WIN32API
#include <winsock2.h>
#define ETIMEDOUT WSAETIMEDOUT
-#define close closesocket
+#define close(fd) closesocket (fd)
#define ioctl ioctlsocket
#else
#include <netinet/in.h>