Module: Mesa
Branch: master
Commit: 6d41edbf8a352bd8c5e13a6e15073fb3a6e0e79e
URL:    
http://cgit.freedesktop.org/mesa/mesa/commit/?id=6d41edbf8a352bd8c5e13a6e15073fb3a6e0e79e

Author: Brian Paul <bri...@vmware.com>
Date:   Fri Apr 13 15:31:49 2018 -0600

mesa: protect #include of unistd.h with _MSV_VER check

unistd.h is unix only.

Reviewed-by: Marek Olšák <marek.ol...@amd.com>
Reviewed-by: Charmaine Lee <charmai...@vmware.com>

---

 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 13eb902514..c4973fd279 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"

_______________________________________________
mesa-commit mailing list
mesa-commit@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/mesa-commit

Reply via email to