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)
committerMichal Krol <michal@vmware.com>
Mon, 7 Sep 2009 07:31:17 +0000 (09:31 +0200)
src/mesa/shader/lex.yy.c
src/mesa/shader/program_lexer.l

index 709426f3a63d3b1950d6d517b49871184df2ff55..283ba8d26e5903b6921aa55e2eb9f7744025d96f 100644 (file)
@@ -912,6 +912,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 d240217481622832f6f210968353c516eef434b9..612f99a42d05c7ad884d307ac432ba1580625ace 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) {                                 \