mesa: protect #include of unistd.h with _MSV_VER check
authorBrian Paul <brianp@vmware.com>
Fri, 13 Apr 2018 21:31:49 +0000 (15:31 -0600)
committerBrian 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

index 13eb90251486498f5ac09e8f9ca46403fe4c5601..c4973fd279146515086c6e347150b77cf2014ec3 100644 (file)
  * 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"