mirror of
https://github.com/Stichting-MINIX-Research-Foundation/pkgsrc-ng.git
synced 2025-09-29 06:57:58 -04:00
17 lines
604 B
Plaintext
17 lines
604 B
Plaintext
$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)
|
|
{
|