util: include stdlib.h in u_string.h to silence MinGW warning
authorBrian Paul <brianp@vmware.com>
Mon, 2 Oct 2017 22:33:46 +0000 (16:33 -0600)
committerEric Engestrom <eric.engestrom@imgtec.com>
Tue, 3 Oct 2017 09:15:03 +0000 (10:15 +0100)
Otherwise we don't get a prototype for malloc().

Reviewed-by: Eric Engestrom <eric.engestrom@imgtec.com>
src/util/u_string.h

index 48f1125..5a2a3e9 100644 (file)
@@ -38,6 +38,7 @@
 #if !defined(XF86_LIBC_H)
 #include <stdio.h>
 #endif
+#include <stdlib.h>
 #include <stddef.h>
 #include <stdarg.h>