[Mesa-dev] [PATCH 2/4] util: Prevent implicit declaration of function getenv.

Jose Fonseca jfonseca at vmware.com
Tue Aug 27 10:57:38 UTC 2019


With MinGW cross compilation.
---
 src/util/os_misc.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/util/os_misc.c b/src/util/os_misc.c
index 755970430b0..436bc38604b 100644
--- a/src/util/os_misc.c
+++ b/src/util/os_misc.c
@@ -38,6 +38,7 @@
 #endif
 #include <windows.h>
 #include <stdio.h>
+#include <stdlib.h>
 
 #else
 
-- 
2.17.1



More information about the mesa-dev mailing list