summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDamiano Galassi <[email protected]>2020-02-20 13:13:09 +0100
committerDamiano Galassi <[email protected]>2020-02-20 13:13:09 +0100
commit6b00ac7a93be76fb0577af1eb1280c4c90a2d6d3 (patch)
treedd18c3f8769317d4dff20ed81f8ede56519dd348
parentf93881c4cd048aeada6b23199c23404e0be6a8c1 (diff)
libhb: fix preprocessor warning.
-rw-r--r--libhb/ports.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libhb/ports.c b/libhb/ports.c
index 6eb34e3fd..8dbc996fe 100644
--- a/libhb/ports.c
+++ b/libhb/ports.c
@@ -449,7 +449,7 @@ static int init_cpu_count()
#elif defined(SYS_DARWIN) || defined(SYS_FREEBSD) || defined(SYS_NETBSD) || defined(SYS_OPENBSD)
size_t length = sizeof( cpu_count );
-#ifdef SYS_OPENBSD || defined(SYS_NETBSD)
+#if defined SYS_OPENBSD || defined(SYS_NETBSD)
int mib[2] = { CTL_HW, HW_NCPU };
if( sysctl(mib, 2, &cpu_count, &length, NULL, 0) )
#else