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
FreeBSD port of 4.2.2 kamailio, small issues #24
Comments
Thanks for pointing out. A clarification - that kind of define check was in two places, see next. The patch you refer to is updating on the second condition. The first one should stay?
|
I only build-tested it, and only with the one condition removed. |
The code was more or less found on various places on the net, here is a link I found searching now: It is a bit old, indeed, but shows that bsd was using the same way as mac os x. I didn't have a *BSD at hand to try, though. Maybe the GNU extension with _SC_NPROCESSORS_ONLN got into *BSD, but wonder if the includes are not different, as for Linux. |
The second suggestion in the stackoverflow link says to use boost. |
Kamailio is written in C and don't want to mix it here. |
Then the sysctl with HW_NCPU will do, as will the sysconf() call. |
I tried to figure out if we need to adjust the condition for included files or let it as it is:
A 'man sysconf' on darwin shows that it needs:
No *BSD around, but I guess it will be the same, therefore I think the guard for the includes needs to be updated as well. Would you have a possibility to test that it compiles? |
Same on FreeBSD: man sysconf says it needs unistd.h. So you can disable the __OS_freebsd in |
Commits pushed to master and 4.2 branches. |
FYI, in
https://lists.freebsd.org/pipermail/svn-ports-all/2015-January/082830.html
you can see the changes required to get kamailio 4.2.2 build as
the freebsd port. Can you integrate those changes upstream ?
The text was updated successfully, but these errors were encountered: