Module: kamailio
Branch: master
Commit: cf65a6ad41396bf5e67d23e12720c420688d7880
URL:
https://github.com/kamailio/kamailio/commit/cf65a6ad41396bf5e67d23e12720c42…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2015-01-12T11:17:14+01:00
pipelimit: _SC_NPROCESSORS_ONLN is available on FreeBSD
- used for getting number of cpus
- reported on GH#24
---
Modified: modules/pipelimit/pipelimit.c
---
Diff:
https://github.com/kamailio/kamailio/commit/cf65a6ad41396bf5e67d23e12720c42…
Patch:
https://github.com/kamailio/kamailio/commit/cf65a6ad41396bf5e67d23e12720c42…
---
diff --git a/modules/pipelimit/pipelimit.c b/modules/pipelimit/pipelimit.c
index 50d35f8..861d6b1 100644
--- a/modules/pipelimit/pipelimit.c
+++ b/modules/pipelimit/pipelimit.c
@@ -183,7 +183,7 @@ struct module_exports exports= {
};
-#if defined (__OS_darwin) || defined (__OS_freebsd)
+#ifdef __OS_darwin
#include <sys/param.h>
#include <sys/sysctl.h>
#else
@@ -193,7 +193,7 @@ struct module_exports exports= {
int get_num_cpus() {
int count = 0;
-#if defined (__OS_darwin) || defined (__OS_freebsd)
+#ifdef __OS_darwin
int nm[2];
size_t len;