Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Please only include <alloca.h> on platforms it is needed #36

Closed
yurivict opened this issue Oct 19, 2016 · 1 comment
Closed

Please only include <alloca.h> on platforms it is needed #36

yurivict opened this issue Oct 19, 2016 · 1 comment

Comments

@yurivict
Copy link

It is needed on linux, but on FreeBSD alloca function is in stdlib.h.

You need to replace it with:

#if defined(__linux__)
#include <alloca.h>
#endif
@yurivict yurivict changed the title Please only include <alloca.h> on platforms it is supported Please only include <alloca.h> on platforms it is needed Oct 19, 2016
@Legrandin
Copy link
Owner

Thanks for reporting. I got rid of alloca() altogether.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants