summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBrian Paul <[email protected]>2017-10-02 16:33:46 -0600
committerEric Engestrom <[email protected]>2017-10-03 10:15:03 +0100
commit2d4b57fc3ed1e2daf66deb769bae3136af02399a (patch)
tree3c9d462640f4665f238ebc9e42bfed1f00ac7ea3
parentbf15dc7a1bb6bcb33bac88705725a8e8c3207bb0 (diff)
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 <[email protected]>
-rw-r--r--src/util/u_string.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/util/u_string.h b/src/util/u_string.h
index 48f1125ccf1..5a2a3e9817f 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>