summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorVinson Lee <[email protected]>2015-03-01 13:52:00 -0700
committerBrian Paul <[email protected]>2015-03-02 09:26:36 -0700
commit3de01d2fe46652471362bcb8a527f59e0bb81cfc (patch)
tree03758f7e574fe2f8375a8e2aea7d48632c4c2099 /include
parent6f0e9c2e393ba17829e1338dc035c25f22a2718c (diff)
c99_alloca.h: Include stdlib.h on all non-Windows.
Fix build on FreeBSD. Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=89364 Signed-off-by: Vinson Lee <[email protected]> Tested-by: Brian Paul <[email protected]>
Diffstat (limited to 'include')
-rw-r--r--include/c99_alloca.h6
1 files changed, 1 insertions, 5 deletions
diff --git a/include/c99_alloca.h b/include/c99_alloca.h
index 7a81c50e0d7..575f719af87 100644
--- a/include/c99_alloca.h
+++ b/include/c99_alloca.h
@@ -35,13 +35,9 @@
# define alloca _alloca
-#elif defined(__MINGW32__)
-
-# include <malloc.h>
-
#else /* !defined(_MSC_VER) */
-# include <alloca.h>
+# include <stdlib.h>
#endif /* !defined(_MSC_VER) */