forked from osmocom/wireshark
From Graham Bloice: define YY_NO_UNISTD_H on Win32, so that if Flex was
a UNIX version generating code that, by default, assumes you have <unistd.h> (as might be the case with recent versions of Cygwin, which I assume *does* supply <unistd.h>), but you're building on a platform that lacks <unistd.h> (e.g., building with MSVC++ or MinGW), you can still compile. svn path=/trunk/; revision=8602
This commit is contained in:
parent
2d25da5376
commit
6f1da2e1b2
|
@ -1,7 +1,7 @@
|
|||
%{
|
||||
/* ascend-scanner.l
|
||||
*
|
||||
* $Id: ascend-scanner.l,v 1.24 2003/07/08 02:11:09 guy Exp $
|
||||
* $Id: ascend-scanner.l,v 1.25 2003/10/03 21:03:00 guy Exp $
|
||||
*
|
||||
* Wiretap Library
|
||||
* Copyright (c) 1998 by Gilbert Ramirez <gram@alumni.rice.edu>
|
||||
|
@ -53,6 +53,10 @@ int mul, scratch;
|
|||
|
||||
#define NO_USER "<none>"
|
||||
|
||||
#ifdef _WIN32
|
||||
#define YY_NO_UNISTD_H
|
||||
#endif
|
||||
|
||||
%}
|
||||
|
||||
/* %option debug */
|
||||
|
|
Loading…
Reference in New Issue