[Mesa-dev] [PATCH 2/5] mesa: protect #include of unistd.h with _MSV_VER check
Brian Paul
brianp at vmware.com
Fri Apr 13 21:35:34 UTC 2018
unistd.h is unix only.
---
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 13eb902..c4973fd 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"
--
2.7.4
More information about the mesa-dev
mailing list