[Mesa-dev] [PATCH] util: include stdlib.h in u_string.h to silence MinGW warning
Brian Paul
brianp at vmware.com
Mon Oct 2 22:33:46 UTC 2017
Otherwise we don't get a prototype for malloc().
---
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 48f1125..5a2a3e9 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>
--
1.9.1
More information about the mesa-dev
mailing list