File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -82,7 +82,7 @@ USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
82
82
#ifdef OS_WINDOWS
83
83
#include <windows.h>
84
84
#endif
85
- #if defined(__FreeBSD__ ) || defined(__OpenBSD__ ) || defined(__DragonFly__ ) || defined(__APPLE__ )
85
+ #if defined(__FreeBSD__ ) || defined(__OpenBSD__ ) || defined(__NetBSD__ ) || defined( __DragonFly__ ) || defined(__APPLE__ )
86
86
#include <sys/types.h>
87
87
#include <sys/sysctl.h>
88
88
#endif
@@ -1201,7 +1201,7 @@ static int get_num_cores(void) {
1201
1201
1202
1202
#ifdef OS_WINDOWS
1203
1203
SYSTEM_INFO sysinfo ;
1204
- #elif defined(__FreeBSD__ ) || defined(__OpenBSD__ ) || defined(__DragonFly__ ) || defined(__APPLE__ )
1204
+ #elif defined(__FreeBSD__ ) || defined(__OpenBSD__ ) || defined(__NetBSD__ ) || defined( __DragonFly__ ) || defined(__APPLE__ )
1205
1205
int m [2 ], count ;
1206
1206
size_t len ;
1207
1207
#endif
@@ -1215,7 +1215,7 @@ static int get_num_cores(void) {
1215
1215
GetSystemInfo (& sysinfo );
1216
1216
return sysinfo .dwNumberOfProcessors ;
1217
1217
1218
- #elif defined(__FreeBSD__ ) || defined(__OpenBSD__ ) || defined(__DragonFly__ ) || defined(__APPLE__ )
1218
+ #elif defined(__FreeBSD__ ) || defined(__OpenBSD__ ) || defined(__NetBSD__ ) || defined( __DragonFly__ ) || defined(__APPLE__ )
1219
1219
m [0 ] = CTL_HW ;
1220
1220
m [1 ] = HW_NCPU ;
1221
1221
len = sizeof (int );
You can’t perform that action at this time.
0 commit comments