* ser-tcp.c (close): Define as a function-like macro on MinGW.
authorMark Mitchell <mark@codesourcery.com>
Sun, 24 Jul 2005 23:02:41 +0000 (23:02 +0000)
committerMark Mitchell <mark@codesourcery.com>
Sun, 24 Jul 2005 23:02:41 +0000 (23:02 +0000)
gdb/ChangeLog
gdb/ser-tcp.c

index 65353cdc2a1e07963cb6dda064663bf4972f905b..e9ea62aa76f33fff422ab396811bfe69d8700de9 100644 (file)
@@ -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.
index 5b0b4311d47205c5e22e355c630b4c220f55885b..c91e83cab4187660cc91a17ed1f4f506f4b8a9f1 100644 (file)
@@ -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>
This page took 0.031922 seconds and 4 git commands to generate.