diff options
Diffstat (limited to 'audio/gtkpod/patches')
-rw-r--r-- | audio/gtkpod/patches/patch-bj | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/audio/gtkpod/patches/patch-bj b/audio/gtkpod/patches/patch-bj index 9bdf8c3d8ae..90f0bf254f9 100644 --- a/audio/gtkpod/patches/patch-bj +++ b/audio/gtkpod/patches/patch-bj @@ -1,7 +1,7 @@ -$NetBSD: patch-bj,v 1.2 2007/12/29 16:15:55 joerg Exp $ +$NetBSD: patch-bj,v 1.3 2008/01/06 17:04:14 rillig Exp $ --- src/file_convert.c.orig 2007-12-18 04:37:43.000000000 +0000 -+++ src/file_convert.c ++++ src/file_convert.c 2008-01-06 18:00:56.000000000 +0000 @@ -216,7 +216,7 @@ struct _ConvTrack gchar *fname_root; /* filename root of converted file */ gchar *fname_extension; /* filename extension of converted file */ @@ -15,10 +15,10 @@ $NetBSD: patch-bj,v 1.2 2007/12/29 16:15:55 joerg Exp $ 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 */ -+#ifdef __DragonFly__ -+ conv->max_threads_num = 1; -+#else ++#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) |