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 fefef573ee563c743088e699151afae92598e647..408ede6eaa772359789fbe1f209ff9f4f3e62da0 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 c2803ff7074a071016328a8d0e43f56ab69a23e5..ce4cb42243b20feb47f1b8b25980a4389db52a80 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) {                                 \