From 0109fb42955d4250870d93c2b35e8a1db9aed934 Mon Sep 17 00:00:00 2001 From: Rob Messick Date: Sun, 23 Feb 2014 12:15:14 -0800 Subject: [PATCH] alloca() lives in stdlib.h on FreeBSD --- platform/x11/platform_config.h | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/platform/x11/platform_config.h b/platform/x11/platform_config.h index d14f3e3f9ab..21703969cc1 100644 --- a/platform/x11/platform_config.h +++ b/platform/x11/platform_config.h @@ -26,7 +26,13 @@ /* TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE */ /* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */ /*************************************************************************/ +#ifdef __linux__ #include +#endif +#ifdef __FreeBSD__ +#include +#endif + #define GLES2_INCLUDE_H "gl_context/glew.h" #define GLES1_INCLUDE_H "gl_context/glew.h"