summaryrefslogtreecommitdiffstats
path: root/src/mesa/shader/program_lexer.l
diff options
context:
space:
mode:
authorMichal Krol <[email protected]>2009-09-07 09:31:17 +0200
committerMichal Krol <[email protected]>2009-09-07 09:31:17 +0200
commit970823978c2f7d2cf0757aa6ddbd6289b34c476f (patch)
tree6d543b6706c13624358bf4a752c713fceb008f78 /src/mesa/shader/program_lexer.l
parent826d441cdfa16a16d165297beb3013f4ff8b4816 (diff)
mesa: Include <unistd.h> only when one is available.
Diffstat (limited to 'src/mesa/shader/program_lexer.l')
-rw-r--r--src/mesa/shader/program_lexer.l4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/mesa/shader/program_lexer.l b/src/mesa/shader/program_lexer.l
index d2402174816..612f99a42d0 100644
--- a/src/mesa/shader/program_lexer.l
+++ b/src/mesa/shader/program_lexer.l
@@ -34,6 +34,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) { \