summaryrefslogtreecommitdiff
path: root/audio/gtkpod/patches
diff options
context:
space:
mode:
authorrillig <rillig@pkgsrc.org>2008-01-06 17:04:14 +0000
committerrillig <rillig@pkgsrc.org>2008-01-06 17:04:14 +0000
commitf60188b126ac688d2f2652ecadeb8b297b43acf4 (patch)
tree678727a38694ebe8257459784e4bc7b32fbc82c9 /audio/gtkpod/patches
parent41c6f91eebe51fef90c0bc6d7f3ccaa6d5825a4a (diff)
downloadpkgsrc-f60188b126ac688d2f2652ecadeb8b297b43acf4.tar.gz
Dragonfly is not the only platform that doesn't know about
_SC_NPROCESSORS_ONLN, NetBSD is another.
Diffstat (limited to 'audio/gtkpod/patches')
-rw-r--r--audio/gtkpod/patches/patch-bj10
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)