summaryrefslogtreecommitdiff
path: root/src/mesa/shader/program_lexer.l
diff options
context:
space:
mode:
authorMichal Krol <michal@vmware.com>2009-09-07 09:31:17 +0200
committerVinson Lee <vlee@vmware.com>2009-12-21 17:55:13 -0800
commitde7021b71c1920eeb181d430f2ae2463f964d7cf (patch)
treee3774e0f8c7cda0127de2438b24b8941fd25ed68 /src/mesa/shader/program_lexer.l
parent2b7b2b90e3fb52306c10f62e2a56f5199028d862 (diff)
mesa: Include <unistd.h> only when one is available.
(cherry picked from commit 970823978c2f7d2cf0757aa6ddbd6289b34c476f)
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 c2803ff7074..ce4cb42243b 100644
--- a/src/mesa/shader/program_lexer.l
+++ b/src/mesa/shader/program_lexer.l
@@ -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) { \