* include/winsock.h: Protect some more newlib defines when compiling cygwin.

This commit is contained in:
Christopher Faylor 2001-04-23 17:19:24 +00:00
parent f940c5b1aa
commit ca608f5682
2 changed files with 5 additions and 1 deletions

View File

@ -1,3 +1,7 @@
Mon Apr 23 13:17:32 2001 Christopher Faylor <cgf@cygnus.com>
* include/winsock.h: Protect some more newlib defines when compiling
cygwin.
2001-04-17 Egor Duda <deo@logos-m.ru>

View File

@ -95,13 +95,13 @@ struct linger {
u_short l_onoff;
u_short l_linger;
};
#endif /* ndef __INSIDE_CYGWIN__ */
#define timerisset(tvp) ((tvp)->tv_sec || (tvp)->tv_usec)
#define timercmp(tvp, uvp, cmp) \
(((tvp)->tv_sec != (uvp)->tv_sec) ? \
((tvp)->tv_sec cmp (uvp)->tv_sec) : \
((tvp)->tv_usec cmp (uvp)->tv_usec))
#define timerclear(tvp) (tvp)->tv_sec = (tvp)->tv_usec = 0
#endif /* ndef __INSIDE_CYGWIN__ */
#define IOCPARM_MASK 0x7f
#define IOC_VOID 0x20000000
#define IOC_OUT 0x40000000