From 6d41edbf8a352bd8c5e13a6e15073fb3a6e0e79e Mon Sep 17 00:00:00 2001 From: Brian Paul Date: Fri, 13 Apr 2018 15:31:49 -0600 Subject: [PATCH] mesa: protect #include of unistd.h with _MSV_VER check MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit unistd.h is unix only. Reviewed-by: Marek Olšák Reviewed-by: Charmaine Lee --- src/mesa/program/program_lexer.l | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/mesa/program/program_lexer.l b/src/mesa/program/program_lexer.l index 13eb9025148..c4973fd2791 100644 --- 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 +#endif + #include "main/glheader.h" #include "main/imports.h" #include "program/prog_instruction.h" -- 2.30.2