Mesa (master): util: include stdlib.h in u_string.h to silence MinGW warning

Eric Engeström eric_engestrom at kemper.freedesktop.org
Tue Oct 3 09:15:57 UTC 2017


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

Author: Brian Paul <brianp at vmware.com>
Date:   Mon Oct  2 16:33:46 2017 -0600

util: include stdlib.h in u_string.h to silence MinGW warning

Otherwise we don't get a prototype for malloc().

Reviewed-by: Eric Engestrom <eric.engestrom at imgtec.com>

---

 src/util/u_string.h | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/util/u_string.h b/src/util/u_string.h
index 48f1125ccf..5a2a3e9817 100644
--- a/src/util/u_string.h
+++ b/src/util/u_string.h
@@ -38,6 +38,7 @@
 #if !defined(XF86_LIBC_H)
 #include <stdio.h>
 #endif
+#include <stdlib.h>
 #include <stddef.h>
 #include <stdarg.h>
 




More information about the mesa-commit mailing list