A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/cisco/openh264/commit/fc1605c1fcc1b3d03419f487a9677efccda8e80c below:

Use HW_NCPUONLINE on OpenBSD / NetBSD (#3813) · cisco/openh264@fc1605c · GitHub

File tree Expand file treeCollapse file tree 1 file changed

+3

-1

lines changed

Filter options

Expand file treeCollapse file tree 1 file changed

+3

-1

lines changed Original file line number Diff line number Diff line change

@@ -55,6 +55,8 @@

55 55

#endif

56 56

#ifdef __APPLE__

57 57

#define HW_NCPU_NAME "hw.logicalcpu"

58 +

#elif defined(HW_NCPUONLINE)

59 +

#define HW_NCPU_NAME "hw.ncpuonline"

58 60

#else

59 61

#define HW_NCPU_NAME "hw.ncpu"

60 62

#endif

@@ -522,7 +524,7 @@ WELS_THREAD_ERROR_CODE WelsQueryLogicalProcessInfo (WelsLogicalProcessInfo* p

522 524

size_t len = sizeof (pInfo->ProcessorCount);

523 525 524 526

#if defined(__OpenBSD__)

525 -

int scname[] = { CTL_HW, HW_NCPU };

527 +

int scname[] = { CTL_HW, HW_NCPUONLINE };

526 528

if (sysctl (scname, 2, &pInfo->ProcessorCount, &len, NULL, 0) == -1)

527 529

#else

528 530

if (sysctlbyname (HW_NCPU_NAME, &pInfo->ProcessorCount, &len, NULL, 0) == -1)

You can’t perform that action at this time.


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4