From 056d7646171dbac17e23b22aedb3472975781b43 Mon Sep 17 00:00:00 2001 From: Mark Mitchell Date: Sun, 24 Jul 2005 23:02:41 +0000 Subject: [PATCH] * ser-tcp.c (close): Define as a function-like macro on MinGW. --- gdb/ChangeLog | 4 ++++ gdb/ser-tcp.c | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 65353cdc2a1..e9ea62aa76f 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,7 @@ +2005-07-24 Mark Mitchell + + * ser-tcp.c (close): Define as a function-like macro on MinGW. + 2005-07-21 Eric Christopher * MAINTAINERS (Misc): Update affiliation. 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 #define ETIMEDOUT WSAETIMEDOUT -#define close closesocket +#define close(fd) closesocket (fd) #define ioctl ioctlsocket #else #include -- 2.30.2