diff options
author | Brian Paul <[email protected]> | 2018-04-13 15:31:49 -0600 |
---|---|---|
committer | Brian Paul <[email protected]> | 2018-04-13 19:06:55 -0600 |
commit | 6d41edbf8a352bd8c5e13a6e15073fb3a6e0e79e (patch) | |
tree | bc6a241e45c3e904e01197caa2000c3c3a796275 /src | |
parent | bf67fec2355ed6f44cfb26a66763c7e1d6f5baa2 (diff) |
mesa: protect #include of unistd.h with _MSV_VER check
unistd.h is unix only.
Reviewed-by: Marek Olšák <[email protected]>
Reviewed-by: Charmaine Lee <[email protected]>
Diffstat (limited to 'src')
-rw-r--r-- | src/mesa/program/program_lexer.l | 4 |
1 files changed, 4 insertions, 0 deletions
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 <unistd.h> +#endif + #include "main/glheader.h" #include "main/imports.h" #include "program/prog_instruction.h" |