diff options
author | Rob Messick <robmessick@gmail.com> | 2014-02-23 12:15:14 -0800 |
---|---|---|
committer | Rob Messick <robmessick@gmail.com> | 2014-02-23 12:18:11 -0800 |
commit | 0109fb42955d4250870d93c2b35e8a1db9aed934 (patch) | |
tree | fba218b6a1fd4826d0966a09cea780f817d43306 /platform/x11/platform_config.h | |
parent | 51609ffc04290f8bd1ecbd9cf1639c0cc6368fac (diff) |
alloca() lives in stdlib.h on FreeBSD
Diffstat (limited to 'platform/x11/platform_config.h')
-rw-r--r-- | platform/x11/platform_config.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/platform/x11/platform_config.h b/platform/x11/platform_config.h index d14f3e3f9a..21703969cc 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 <alloca.h> +#endif +#ifdef __FreeBSD__ +#include <stdlib.h> +#endif + #define GLES2_INCLUDE_H "gl_context/glew.h" #define GLES1_INCLUDE_H "gl_context/glew.h" |