blob: 96922b43e86d548ca861efa2902251c5432e1d90 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
$NetBSD: patch-bj,v 1.4 2009/02/15 09:43:38 wiz Exp $
--- src/file_convert.c.orig 2009-01-18 05:52:32.000000000 +0000
+++ src/file_convert.c
@@ -668,7 +668,11 @@ static void conversion_prefs_changed (Co
conv->max_threads_num = prefs_get_int (FILE_CONVERT_MAX_THREADS_NUM);
if (conv->max_threads_num == 0)
{ /* set to maximum available number of processors */
+#if defined(_SC_NPROCESSORS_ONLN) && !defined(__DragonFly__)
conv->max_threads_num = sysconf (_SC_NPROCESSORS_ONLN);
+#else
+ conv->max_threads_num = 1;
+#endif
/* paranoia mode on */
if (conv->max_threads_num <= 0)
{
|