tools/widl/parser.l -- #include <unistd.h>

Gerald Pfeifer gerald at pfeifer.com
Fri Feb 22 04:24:27 CST 2008


I found the change below necessary with lex 2.5.4 on FreeBSD 6,
but it doesn't seem specific to any system.

Gerald

ChangeLog:
#include <unistd.h> for prototype of unlink().

Index: tools/widl/parser.l
===================================================================
RCS file: /home/wine/wine/tools/widl/parser.l,v
retrieving revision 1.52
diff -u -3 -p -r1.52 parser.l
--- tools/widl/parser.l	19 Feb 2008 14:55:41 -0000	1.52
+++ tools/widl/parser.l	22 Feb 2008 10:18:11 -0000
@@ -45,7 +45,9 @@ double	[0-9]+\.[0-9]+([eE][+-]?[0-9]+)*
 #include <ctype.h>
 #include <assert.h>
 
-#ifndef HAVE_UNISTD_H
+#ifdef HAVE_UNISTD_H
+#include <unistd.h>
+#else
 #define YY_NO_UNISTD_H
 #endif
 



More information about the wine-patches mailing list