c99_alloca.h: Include stdlib.h on all non-Windows.
authorVinson Lee <vlee@freedesktop.org>
Sun, 1 Mar 2015 20:52:00 +0000 (13:52 -0700)
committerBrian Paul <brianp@vmware.com>
Mon, 2 Mar 2015 16:26:36 +0000 (09:26 -0700)
Fix build on FreeBSD.

Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=89364
Signed-off-by: Vinson Lee <vlee@freedesktop.org>
Tested-by: Brian Paul <brianp@vmware.com>
include/c99_alloca.h

index 7a81c50e0d7f499ec62f91538157fe4446a273c6..575f719af87acdb97be540f03068360fc2587132 100644 (file)
 
 #  define alloca _alloca
 
-#elif defined(__MINGW32__)
-
-#  include <malloc.h>
-
 #else /* !defined(_MSC_VER) */
 
-#  include <alloca.h>
+#  include <stdlib.h>
 
 #endif /* !defined(_MSC_VER) */