-
Notifications
You must be signed in to change notification settings - Fork 2k
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
malloc.h not found on OS X #2361
Comments
There is one in the tree at The "real" posix malloc is defined in |
@josephnoir is this fixed now? Can we close this issue? |
No, this is not fixed. |
Did you test @gebart's proposal? Are you willing to fix it :-)? |
Is there a reason to use malloc.h over stdlib.h. It's my understanding that stdlib.h is more portable so it should be fine to change all |
Unconditionally including
|
@LudwigOrtmann is that an error in either implementation or are we just not compatible with Linux? |
I was able to use an if define to get around the |
@jhollister care to open a PR with your fix? |
I don't have much experience with compatibility stuff like this. Is it correct to do something like:
and should I do this for every occurrence of |
You could also try to mess around with conditionally adding a local |
#2590 has been merged |
macOS doesn't seem to have a malloc.h readily available, but as per random Google result at RIOT-OS/RIOT#2361 we can just include <stdlib.h> in its place.
Using the native port on OS X with clang I get this error when using pthread:
The text was updated successfully, but these errors were encountered: