blob: 3a8d015628f82c3fec0fc09931c70204f7439268 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
$NetBSD: patch-ac,v 1.6 2011/06/24 09:03:32 tron Exp $
--- src/xvid.c.orig 2009-01-24 00:33:11.000000000 -0500
+++ src/xvid.c 2009-01-24 00:33:42.000000000 -0500
@@ -679,7 +679,11 @@ xvid_gbl_info(xvid_gbl_info_t * info)
#else
+#if defined(_SC_NPROCESSORS_CONF)
info->num_threads = sysconf(_SC_NPROCESSORS_CONF);
+#else
+ info->num_threads = 1;
+#endif
#endif
|