dect
/
libpcap
Archived
13
0
Fork 0

Renamed fileno to _fileno under MSVC, to avoid a compiler warning.

This commit is contained in:
risso 2005-05-04 19:40:01 +00:00
parent a1b08cb922
commit eb99b397f3
1 changed files with 2 additions and 2 deletions

View File

@ -30,7 +30,7 @@
#ifndef lint
static const char rcsid[] _U_ =
"@(#) $Header: /tcpdump/master/libpcap/savefile.c,v 1.126.2.5 2005-05-01 20:00:46 guy Exp $ (LBL)";
"@(#) $Header: /tcpdump/master/libpcap/savefile.c,v 1.126.2.6 2005-05-04 19:40:01 risso Exp $ (LBL)";
#endif
#ifdef HAVE_CONFIG_H
@ -98,7 +98,7 @@ static const char rcsid[] _U_ =
* Setting O_BINARY on DOS/Windows is a bit tricky
*/
#if defined(WIN32)
#define SET_BINMODE(f) _setmode(fileno(f), _O_BINARY)
#define SET_BINMODE(f) _setmode(_fileno(f), _O_BINARY)
#elif defined(MSDOS)
#if defined(__HIGHC__)
#define SET_BINMODE(f) setmode(f, O_BINARY)