mesa: Include <unistd.h> only when one is available.
authorMichal Krol <michal@vmware.com>
Mon, 7 Sep 2009 07:31:17 +0000 (09:31 +0200)
committerVinson Lee <vlee@vmware.com>
Tue, 22 Dec 2009 01:55:13 +0000 (17:55 -0800)
(cherry picked from commit 970823978c2f7d2cf0757aa6ddbd6289b34c476f)

src/mesa/shader/lex.yy.c
src/mesa/shader/program_lexer.l

index fefef57..408ede6 100644 (file)
@@ -913,6 +913,10 @@ static yyconst flex_int16_t yy_chk[1023] =
 #define require_rect   (yyextra->option.TexRect)
 #define require_texarray        (yyextra->option.TexArray)
 
+#ifndef HAVE_UNISTD_H
+#define YY_NO_UNISTD_H
+#endif
+
 #define return_token_or_IDENTIFIER(condition, token)   \
    do {                                                        \
       if (condition) {                                 \
index c2803ff..ce4cb42 100644 (file)
 #define require_rect   (yyextra->option.TexRect)
 #define require_texarray        (yyextra->option.TexArray)
 
+#ifndef HAVE_UNISTD_H
+#define YY_NO_UNISTD_H
+#endif
+
 #define return_token_or_IDENTIFIER(condition, token)   \
    do {                                                        \
       if (condition) {                                 \