util: Prevent implicit declaration of function getenv.
authorJose Fonseca <jfonseca@vmware.com>
Tue, 27 Aug 2019 10:51:00 +0000 (11:51 +0100)
committerJose Fonseca <jfonseca@vmware.com>
Wed, 28 Aug 2019 14:52:07 +0000 (15:52 +0100)
With MinGW cross compilation.

Reviewed-by: Brian Paul <brianp@vmware.com>
Reviewed-by: Roland Scheidegger <sroland@vmware.com>
Acked-by: Eric Engestrom <eric@engestrom.ch>
src/util/os_misc.c

index 755970430b00ace5111a7c8bce05f5128308f98a..436bc38604b8757e96154af1ce089d70ae187dae 100644 (file)
@@ -38,6 +38,7 @@
 #endif
 #include <windows.h>
 #include <stdio.h>
+#include <stdlib.h>
 
 #else