mesa: Include <unistd.h> only when one is available.

(cherry picked from commit 970823978c)
This commit is contained in:
Michal Krol 2009-09-07 09:31:17 +02:00 committed by Vinson Lee
parent 2b7b2b90e3
commit de7021b71c
2 changed files with 8 additions and 0 deletions

View 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) { \

View File

@ -35,6 +35,10 @@
#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) { \