diff options
author | Guy Harris <guy@alum.mit.edu> | 2003-10-03 21:03:00 +0000 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2003-10-03 21:03:00 +0000 |
commit | 6f1da2e1b2f498a0ce7aa6f6b7c678cd8190abd0 (patch) | |
tree | 9741de2a92dbe2878413d9d292d1120a895cd072 /wiretap | |
parent | 2d25da53763d06a6ee241c553eb1e1114647abea (diff) |
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
Diffstat (limited to 'wiretap')
-rw-r--r-- | wiretap/ascend-scanner.l | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/wiretap/ascend-scanner.l b/wiretap/ascend-scanner.l index fe0202a172..c6fe90916a 100644 --- a/wiretap/ascend-scanner.l +++ b/wiretap/ascend-scanner.l @@ -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 */ |