Module: wine Branch: master Commit: da3ee6650539fa89ea19cf4a509878fcafa82192 URL: http://source.winehq.org/git/wine.git/?a=commit;h=da3ee6650539fa89ea19cf4a50...
Author: Alexandre Julliard julliard@winehq.org Date: Tue Oct 6 16:18:04 2009 +0200
wrc: Include unistd.h before the Windows headers.
---
tools/wrc/parser.l | 4 +++- 1 files changed, 3 insertions(+), 1 deletions(-)
diff --git a/tools/wrc/parser.l b/tools/wrc/parser.l index 3ea04de..2cb7937 100644 --- a/tools/wrc/parser.l +++ b/tools/wrc/parser.l @@ -106,7 +106,9 @@ cident [a-zA-Z_][0-9a-zA-Z_]* #include <errno.h> #include <limits.h>
-#ifndef HAVE_UNISTD_H +#ifdef HAVE_UNISTD_H +#include <unistd.h> +#else #define YY_NO_UNISTD_H #endif