diff options
author | rillig <rillig@pkgsrc.org> | 2008-01-06 17:04:14 +0000 |
---|---|---|
committer | rillig <rillig@pkgsrc.org> | 2008-01-06 17:04:14 +0000 |
commit | b39f85e7b36fa52aefb8a4f7e3e88c1ef98e2fdc (patch) | |
tree | 678727a38694ebe8257459784e4bc7b32fbc82c9 /audio | |
parent | 8abb73b3f5c43d8564adcda68e3296c5f98340e0 (diff) | |
download | pkgsrc-b39f85e7b36fa52aefb8a4f7e3e88c1ef98e2fdc.tar.gz |
Dragonfly is not the only platform that doesn't know about
_SC_NPROCESSORS_ONLN, NetBSD is another.
Diffstat (limited to 'audio')
-rw-r--r-- | audio/gtkpod/distinfo | 4 | ||||
-rw-r--r-- | audio/gtkpod/patches/patch-bj | 10 |
2 files changed, 7 insertions, 7 deletions
diff --git a/audio/gtkpod/distinfo b/audio/gtkpod/distinfo index 7bae616c179..c4da127a654 100644 --- a/audio/gtkpod/distinfo +++ b/audio/gtkpod/distinfo @@ -1,4 +1,4 @@ -$NetBSD: distinfo,v 1.7 2007/12/29 16:15:55 joerg Exp $ +$NetBSD: distinfo,v 1.8 2008/01/06 17:04:14 rillig Exp $ SHA1 (gtkpod-0.99.12.tar.gz) = ab7c03ee1a875fe2bab953d5805a2a4d65fcd669 RMD160 (gtkpod-0.99.12.tar.gz) = de41d4ab3c907416e88e81fbc79ca1d82411c4c4 @@ -7,4 +7,4 @@ SHA1 (gtkpod-0.99.8_libgpod-0.4.2.diff) = a5090b4597922cc81fc33efd9a3f7e1278b577 RMD160 (gtkpod-0.99.8_libgpod-0.4.2.diff) = 2e8094b8eba3179279d1b91133df588833e9df3e Size (gtkpod-0.99.8_libgpod-0.4.2.diff) = 2580 bytes SHA1 (patch-bi) = 664a807d14318fd205a89dacc3084212cc9c6d5e -SHA1 (patch-bj) = 016caeb2a098692951953ffee5948c574a3e1673 +SHA1 (patch-bj) = 1142f4d4833463427e8aa687cf395213b6c53251 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) |