From: Brian Paul Date: Fri, 13 Apr 2018 21:31:49 +0000 (-0600) Subject: mesa: protect #include of unistd.h with _MSV_VER check X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=6d41edbf8a352bd8c5e13a6e15073fb3a6e0e79e;p=mesa.git mesa: protect #include of unistd.h with _MSV_VER check unistd.h is unix only. Reviewed-by: Marek Olšák Reviewed-by: Charmaine Lee --- 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"