projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bf67fec
)
mesa: protect #include of unistd.h with _MSV_VER check
author
Brian Paul
<brianp@vmware.com>
Fri, 13 Apr 2018 21:31:49 +0000
(15:31 -0600)
committer
Brian Paul
<brianp@vmware.com>
Sat, 14 Apr 2018 01:06:55 +0000
(19:06 -0600)
unistd.h is unix only.
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Reviewed-by: Charmaine Lee <charmainel@vmware.com>
src/mesa/program/program_lexer.l
patch
|
blob
|
history
diff --git
a/src/mesa/program/program_lexer.l
b/src/mesa/program/program_lexer.l
index 13eb90251486498f5ac09e8f9ca46403fe4c5601..c4973fd279146515086c6e347150b77cf2014ec3 100644
(file)
--- a/
src/mesa/program/program_lexer.l
+++ b/
src/mesa/program/program_lexer.l
@@
-21,7
+21,11
@@
* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
* DEALINGS IN THE SOFTWARE.
*/
+
+#ifndef _MSC_VER
#include <unistd.h>
+#endif
+
#include "main/glheader.h"
#include "main/imports.h"
#include "program/prog_instruction.h"