diff options
author | Mark Mitchell <mark@codesourcery.com> | 2005-07-24 23:02:41 +0000 |
---|---|---|
committer | Mark Mitchell <mark@codesourcery.com> | 2005-07-24 23:02:41 +0000 |
commit | 056d7646171dbac17e23b22aedb3472975781b43 (patch) | |
tree | a25fddac235a6797e63a5f8eaea330ba04f447e7 | |
parent | 99356e902060ff5d87d28cd15cef3fdd7ea3cc7c (diff) | |
download | gdb-056d7646171dbac17e23b22aedb3472975781b43.zip gdb-056d7646171dbac17e23b22aedb3472975781b43.tar.gz gdb-056d7646171dbac17e23b22aedb3472975781b43.tar.bz2 |
* ser-tcp.c (close): Define as a function-like macro on MinGW.
-rw-r--r-- | gdb/ChangeLog | 4 | ||||
-rw-r--r-- | gdb/ser-tcp.c | 2 |
2 files changed, 5 insertions, 1 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 65353cd..e9ea62a 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,7 @@ +2005-07-24 Mark Mitchell <mark@codesourcery.com> + + * ser-tcp.c (close): Define as a function-like macro on MinGW. + 2005-07-21 Eric Christopher <echristo@apple.com> * MAINTAINERS (Misc): Update affiliation. diff --git a/gdb/ser-tcp.c b/gdb/ser-tcp.c index 5b0b431..c91e83c 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> |