* ser-tcp.c (close): Define as a function-like macro on MinGW.

This commit is contained in:
Mark Mitchell
2005-07-24 23:02:41 +00:00
parent 99356e9020
commit 056d764617
2 changed files with 5 additions and 1 deletions

View 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>