dect
/
libpcap
Archived
13
0
Fork 0

From Gisle Vanem: at least some compilation environments on Windows do

have <unistd.h> (e.g., Cygwin), so include it as long as _MSC_VER (for
MSVC++) isn't defined.
This commit is contained in:
guy 2004-03-25 22:40:52 +00:00
parent bad4fae138
commit b94e8f50a5
1 changed files with 2 additions and 2 deletions

4
pcap.c
View File

@ -33,7 +33,7 @@
#ifndef lint
static const char rcsid[] _U_ =
"@(#) $Header: /tcpdump/master/libpcap/pcap.c,v 1.63.2.8 2004-03-17 19:05:21 guy Exp $ (LBL)";
"@(#) $Header: /tcpdump/master/libpcap/pcap.c,v 1.63.2.9 2004-03-25 22:40:52 guy Exp $ (LBL)";
#endif
#ifdef HAVE_CONFIG_H
@ -49,7 +49,7 @@ static const char rcsid[] _U_ =
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#ifndef WIN32
#ifndef _MSC_VER
#include <unistd.h>
#endif
#include <fcntl.h>