From 6f1da2e1b2f498a0ce7aa6f6b7c678cd8190abd0 Mon Sep 17 00:00:00 2001 From: Guy Harris Date: Fri, 3 Oct 2003 21:03:00 +0000 Subject: 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 (as might be the case with recent versions of Cygwin, which I assume *does* supply ), but you're building on a platform that lacks (e.g., building with MSVC++ or MinGW), you can still compile. svn path=/trunk/; revision=8602 --- wiretap/ascend-scanner.l | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'wiretap') 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 @@ -53,6 +53,10 @@ int mul, scratch; #define NO_USER "" +#ifdef _WIN32 +#define YY_NO_UNISTD_H +#endif + %} /* %option debug */ -- cgit v1.2.3