-
-
Notifications
You must be signed in to change notification settings - Fork 251
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
Compilation fails on FreeBSD < 12 #873
Comments
Reference: https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=155429
Reference: https://svnweb.freebsd.org/base?view=revision&revision=360984 It may be desirable to detect FreeBSD, and do something like: #ifdef __APPLE__
# include <stdlib.h>
+ #elif defined(__FreeBSD__)
+ # include <stdlib.h>
+ # include <malloc_np.h>
#else
# include <malloc.h>
#endif |
I guess this would also need an This sounds like something I could pull as a fix without waiting for a future stable release branch, since it is a minimal change that is (very) unlikely to have unknown effects on other platforms. |
Co-authored-by: Hans Kristian Rosbach <hk-git@circlestorm.org> Co-authored-by: concatime <concatime@users.noreply@github.com>
Co-authored-by: Hans Kristian Rosbach <hk-git@circlestorm.org> Co-authored-by: concatime <concatime@users.noreply@github.com>
This should be fixed in 2.0.2. |
Using commit: aeffa9b
FreeBSD 11.4:
-- The C compiler identification is Clang 10.0.0
-- The CXX compiler identification is Clang 10.0.0
Although interestingly, zero issues on FreeBSD 12.2. In case it matters (for the warnings), 12.2 has a slightly newer version of Clang:
-- The C compiler identification is Clang 10.0.1
-- The CXX compiler identification is Clang 10.0.1
The text was updated successfully, but these errors were encountered: