Renamed fileno to _fileno under MSVC, to avoid a compiler warning.
This commit is contained in:
parent
a1b08cb922
commit
eb99b397f3
|
@ -30,7 +30,7 @@
|
||||||
|
|
||||||
#ifndef lint
|
#ifndef lint
|
||||||
static const char rcsid[] _U_ =
|
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
|
#endif
|
||||||
|
|
||||||
#ifdef HAVE_CONFIG_H
|
#ifdef HAVE_CONFIG_H
|
||||||
|
@ -98,7 +98,7 @@ static const char rcsid[] _U_ =
|
||||||
* Setting O_BINARY on DOS/Windows is a bit tricky
|
* Setting O_BINARY on DOS/Windows is a bit tricky
|
||||||
*/
|
*/
|
||||||
#if defined(WIN32)
|
#if defined(WIN32)
|
||||||
#define SET_BINMODE(f) _setmode(fileno(f), _O_BINARY)
|
#define SET_BINMODE(f) _setmode(_fileno(f), _O_BINARY)
|
||||||
#elif defined(MSDOS)
|
#elif defined(MSDOS)
|
||||||
#if defined(__HIGHC__)
|
#if defined(__HIGHC__)
|
||||||
#define SET_BINMODE(f) setmode(f, O_BINARY)
|
#define SET_BINMODE(f) setmode(f, O_BINARY)
|
||||||
|
|
Reference in New Issue