Add comments to most patches. Also add a patch by drochner: pthread_key_create returns 0 on success; return values on failure are not defined. Remaining patches without comments: patch-ab: adding an ifdef notyet in src/daemon/main.c patch-a{c,e}: --start -> -D (no idea why) patch-af: allow some Linux-only code also on NetBSDdiff -r1.24 -r1.25 pkgsrc/audio/pulseaudio/distinfo
(wiz)
@@ -1,21 +1,22 @@ | @@ -1,21 +1,22 @@ | |||
1 | $NetBSD: distinfo,v 1.24 2011/01/20 13:08:59 ahoka Exp $ | 1 | $NetBSD: distinfo,v 1.25 2011/05/21 15:32:59 wiz Exp $ | |
2 | 2 | |||
3 | SHA1 (pulseaudio-0.9.21.tar.gz) = 0309c97f7e0812e243c1bb80a4b74dc26369ac22 | 3 | SHA1 (pulseaudio-0.9.21.tar.gz) = 0309c97f7e0812e243c1bb80a4b74dc26369ac22 | |
4 | RMD160 (pulseaudio-0.9.21.tar.gz) = 6db0725253228b673a78cbfae4824fadce2198ed | 4 | RMD160 (pulseaudio-0.9.21.tar.gz) = 6db0725253228b673a78cbfae4824fadce2198ed | |
5 | Size (pulseaudio-0.9.21.tar.gz) = 2056896 bytes | 5 | Size (pulseaudio-0.9.21.tar.gz) = 2056896 bytes | |
6 | SHA1 (patch-aa) = 078dd540b56f2db5d676835ab37cd4e8bbe33650 | 6 | SHA1 (patch-aa) = b8d6bf8ce8642bc987a7dce5d14df51a2a92d2ae | |
7 | SHA1 (patch-ab) = 1cf47a55b1c794b315646379ae03d633dc1d348f | 7 | SHA1 (patch-ab) = 1cf47a55b1c794b315646379ae03d633dc1d348f | |
8 | SHA1 (patch-ac) = b42e6ef8ff2851ea78a6eae6cb6241c94d74b2d0 | 8 | SHA1 (patch-ac) = b42e6ef8ff2851ea78a6eae6cb6241c94d74b2d0 | |
9 | SHA1 (patch-ad) = 5c7b5254233c8e0d36c6659454af0780af872cc3 | 9 | SHA1 (patch-ad) = 5ae0e5d8b0b7622c35cb2fabba4a33b673cbd442 | |
10 | SHA1 (patch-ae) = 5e6957e73ffd96d2e63e5ea4eb9b0ca9ea016b30 | 10 | SHA1 (patch-ae) = 5e6957e73ffd96d2e63e5ea4eb9b0ca9ea016b30 | |
11 | SHA1 (patch-af) = e11fb419787e3cd1f305b66c995915f11276770e | 11 | SHA1 (patch-af) = e11fb419787e3cd1f305b66c995915f11276770e | |
12 | SHA1 (patch-ag) = 523743b49476a219f76b108a605b2b57ea63098a | 12 | SHA1 (patch-ag) = 64c93717f864605ba66cc6c4be84a594aeda943c | |
13 | SHA1 (patch-ah) = 8327883adcbc679fdb97de9a0f10a89438ea9fd7 | 13 | SHA1 (patch-ah) = b4ce6535ca9dfc695bd04c5fae0a5bc614bec2eb | |
14 | SHA1 (patch-ba) = 3e5f28049363676d4bf3061605529253bea24f25 | 14 | SHA1 (patch-ba) = 7a57cbd68026c72804bb705d2a23e562c59b86a7 | |
15 | SHA1 (patch-bb) = e6f4095eb460c605b8dcc02980c5cff0cd0715a8 | 15 | SHA1 (patch-bb) = e6f4095eb460c605b8dcc02980c5cff0cd0715a8 | |
16 | SHA1 (patch-ca) = 3016b290943c006392bff01d6eae75a432a7e171 | 16 | SHA1 (patch-ca) = 14ea426afebad99b53e6f8d594ff2f5adac07e30 | |
17 | SHA1 (patch-da) = d56957d37bec15bd41d77b99ce60bcdea0ef4f20 | 17 | SHA1 (patch-da) = 3d63c7a2e76e41b9400869badda0d0e008c4b9bc | |
18 | SHA1 (patch-db) = e1e48577618b4eb2586d8b37953b2474e2dcc864 | 18 | SHA1 (patch-db) = 1bd6b5c35a38476de4bfdb606b5ecf8243ddf91f | |
19 | SHA1 (patch-dc) = d814e1a1d5aed3e3604d6df44621fe789c625982 | 19 | SHA1 (patch-dc) = fe5f8e6eec89ec832d9d161fa0a201e64a841a0c | |
20 | SHA1 (patch-dd) = 83e51035ff871cef9c39bf670173e30705df8fe5 | 20 | SHA1 (patch-dd) = bfccd97ecf3be1ae9ac41a642b356743e055550f | |
21 | SHA1 (patch-poll_c-build-fix) = 4250be8c4a1f2dbe6ca3621b285d11258b34a62b | 21 | SHA1 (patch-de) = 3b8423a5936b8434de22fdd04ff2057dde09a2b8 | |
22 | SHA1 (patch-poll_c-build-fix) = f9a2e86275431c53257c596974a6973c8034b1f0 |
@@ -1,14 +1,20 @@ | @@ -1,14 +1,20 @@ | |||
1 | $NetBSD: patch-aa,v 1.6 2010/02/01 15:00:20 jmcneill Exp $ | 1 | $NetBSD: patch-aa,v 1.7 2011/05/21 15:32:59 wiz Exp $ | |
2 | ||||
3 | SNDDSP_GETODELAY isn't defined on NetBSD-4.x. | |||
4 | ioctl() takes u_long argument on NetBSD. | |||
5 | On NetBSD, use third parameter in ioctl instead of varargs. | |||
6 | stat() system call has been versioned, use latest version when dlopen()ing. | |||
7 | Try more typical device names. | |||
2 | 8 | |||
3 | --- src/utils/padsp.c.orig 2009-09-18 20:21:44.000000000 +0000 | 9 | --- src/utils/padsp.c.orig 2009-09-18 20:21:44.000000000 +0000 | |
4 | +++ src/utils/padsp.c | 10 | +++ src/utils/padsp.c | |
5 | @@ -60,6 +60,10 @@ | 11 | @@ -60,6 +60,10 @@ | |
6 | # define SIOCINQ FIONREAD | 12 | # define SIOCINQ FIONREAD | |
7 | #endif | 13 | #endif | |
8 | 14 | |||
9 | +#if !defined(SNDCTL_DSP_GETODELAY) | 15 | +#if !defined(SNDCTL_DSP_GETODELAY) | |
10 | +# define SNDCTL_DSP_GETODELAY _IOR ('P', 23, int) | 16 | +# define SNDCTL_DSP_GETODELAY _IOR ('P', 23, int) | |
11 | +#endif | 17 | +#endif | |
12 | + | 18 | + | |
13 | /* make sure gcc doesn't redefine open and friends as macros */ | 19 | /* make sure gcc doesn't redefine open and friends as macros */ | |
14 | #undef open | 20 | #undef open |
@@ -1,14 +1,20 @@ | @@ -1,14 +1,20 @@ | |||
1 | $NetBSD: patch-ad,v 1.6 2010/12/02 21:17:43 wiz Exp $ | 1 | $NetBSD: patch-ad,v 1.7 2011/05/21 15:32:59 wiz Exp $ | |
2 | ||||
3 | 1. chunk: adapt installation paths for pkgsrc; make UDEV optional | |||
4 | 2. chunk: adapt installation path for pkgsrc | |||
5 | 3. chunk: adapt path for NetBSD | |||
6 | 4. chunk: link against libossaudio where it exists (variable supplied | |||
7 | by pkgsrc) | |||
2 | 8 | |||
3 | --- src/Makefile.am.orig 2009-11-22 19:57:04.000000000 -0800 | 9 | --- src/Makefile.am.orig 2009-11-22 19:57:04.000000000 -0800 | |
4 | +++ src/Makefile.am 2010-10-01 10:11:05.000000000 -0700 | 10 | +++ src/Makefile.am 2010-10-01 10:11:05.000000000 -0700 | |
5 | @@ -26,13 +26,17 @@ | 11 | @@ -26,13 +26,17 @@ | |
6 | 12 | |||
7 | pulseincludedir=$(includedir)/pulse | 13 | pulseincludedir=$(includedir)/pulse | |
8 | pulsecoreincludedir=$(includedir)/pulsecore | 14 | pulsecoreincludedir=$(includedir)/pulsecore | |
9 | -pulseconfdir=$(sysconfdir)/pulse | 15 | -pulseconfdir=$(sysconfdir)/pulse | |
10 | +pulseconfdir=$(EGDIR) | 16 | +pulseconfdir=$(EGDIR) | |
11 | pulselibexecdir=$(libexecdir)/pulse | 17 | pulselibexecdir=$(libexecdir)/pulse | |
12 | -xdgautostartdir=$(sysconfdir)/xdg/autostart | 18 | -xdgautostartdir=$(sysconfdir)/xdg/autostart | |
13 | +xdgautostartdir=$(PREFIX)/share/gnome/autostart | 19 | +xdgautostartdir=$(PREFIX)/share/gnome/autostart | |
14 | alsaprofilesetsdir=$(datadir)/pulseaudio/alsa-mixer/profile-sets | 20 | alsaprofilesetsdir=$(datadir)/pulseaudio/alsa-mixer/profile-sets |
@@ -1,14 +1,17 @@ | @@ -1,14 +1,17 @@ | |||
1 | $NetBSD: patch-ag,v 1.2 2010/02/01 15:00:20 jmcneill Exp $ | 1 | $NetBSD: patch-ag,v 1.3 2011/05/21 15:33:00 wiz Exp $ | |
2 | ||||
3 | shm_open takes a path on NetBSD; pa_shm_create_rw needs write | |||
4 | permissions, so +w the shared memory when creating it. | |||
2 | 5 | |||
3 | --- src/pulsecore/shm.c.orig 2010-02-01 14:21:15.000000000 +0000 | 6 | --- src/pulsecore/shm.c.orig 2010-02-01 14:21:15.000000000 +0000 | |
4 | +++ src/pulsecore/shm.c | 7 | +++ src/pulsecore/shm.c | |
5 | @@ -91,7 +91,7 @@ struct shm_marker { | 8 | @@ -91,7 +91,7 @@ struct shm_marker { | |
6 | #define SHM_MARKER_SIZE PA_ALIGN(sizeof(struct shm_marker)) | 9 | #define SHM_MARKER_SIZE PA_ALIGN(sizeof(struct shm_marker)) | |
7 | 10 | |||
8 | static char *segment_name(char *fn, size_t l, unsigned id) { | 11 | static char *segment_name(char *fn, size_t l, unsigned id) { | |
9 | - pa_snprintf(fn, l, "/pulse-shm-%u", id); | 12 | - pa_snprintf(fn, l, "/pulse-shm-%u", id); | |
10 | + pa_snprintf(fn, l, "/tmp/pulse-shm-%u", id); | 13 | + pa_snprintf(fn, l, "/tmp/pulse-shm-%u", id); | |
11 | return fn; | 14 | return fn; | |
12 | } | 15 | } | |
13 | 16 | |||
14 | @@ -142,7 +142,7 @@ int pa_shm_create_rw(pa_shm *m, size_t s | 17 | @@ -142,7 +142,7 @@ int pa_shm_create_rw(pa_shm *m, size_t s |
@@ -1,14 +1,16 @@ | @@ -1,14 +1,16 @@ | |||
1 | $NetBSD: patch-ca,v 1.2 2010/02/01 15:00:20 jmcneill Exp $ | 1 | $NetBSD: patch-ca,v 1.3 2011/05/21 15:33:00 wiz Exp $ | |
2 | ||||
3 | Avoid GNUism in iconv usage. | |||
2 | 4 | |||
3 | --- src/pulse/utf8.c.orig 2009-09-10 00:04:58.000000000 +0000 | 5 | --- src/pulse/utf8.c.orig 2009-09-10 00:04:58.000000000 +0000 | |
4 | +++ src/pulse/utf8.c | 6 | +++ src/pulse/utf8.c | |
5 | @@ -55,6 +55,7 @@ | 7 | @@ -55,6 +55,7 @@ | |
6 | 8 | |||
7 | #ifdef HAVE_ICONV | 9 | #ifdef HAVE_ICONV | |
8 | #include <iconv.h> | 10 | #include <iconv.h> | |
9 | +#include <langinfo.h> | 11 | +#include <langinfo.h> | |
10 | #endif | 12 | #endif | |
11 | 13 | |||
12 | #include <pulse/xmalloc.h> | 14 | #include <pulse/xmalloc.h> | |
13 | @@ -238,11 +239,11 @@ static char* iconv_simple(const char *st | 15 | @@ -238,11 +239,11 @@ static char* iconv_simple(const char *st | |
14 | } | 16 | } |
@@ -1,14 +1,17 @@ | @@ -1,14 +1,17 @@ | |||
1 | $NetBSD: patch-ah,v 1.3 2010/08/10 05:42:34 tsutsui Exp $ | 1 | $NetBSD: patch-ah,v 1.4 2011/05/21 15:33:00 wiz Exp $ | |
2 | ||||
3 | Fix build on NetBSD/arm: | |||
4 | Fix wrong placed #else clause against #if defined(__linux__) in cpu-arm.c. | |||
2 | 5 | |||
3 | --- src/pulsecore/cpu-arm.c.orig 2009-11-23 03:57:07.000000000 +0000 | 6 | --- src/pulsecore/cpu-arm.c.orig 2009-11-23 03:57:07.000000000 +0000 | |
4 | +++ src/pulsecore/cpu-arm.c 2010-08-07 08:14:36.000000000 +0000 | 7 | +++ src/pulsecore/cpu-arm.c 2010-08-07 08:14:36.000000000 +0000 | |
5 | @@ -129,11 +129,11 @@ | 8 | @@ -129,11 +129,11 @@ | |
6 | (flags & PA_CPU_ARM_EDSP) ? "EDSP " : "", | 9 | (flags & PA_CPU_ARM_EDSP) ? "EDSP " : "", | |
7 | (flags & PA_CPU_ARM_NEON) ? "NEON " : "", | 10 | (flags & PA_CPU_ARM_NEON) ? "NEON " : "", | |
8 | (flags & PA_CPU_ARM_VFPV3) ? "VFPV3 " : ""); | 11 | (flags & PA_CPU_ARM_VFPV3) ? "VFPV3 " : ""); | |
9 | -#else /* defined (__linux__) */ | 12 | -#else /* defined (__linux__) */ | |
10 | - pa_log ("ARM cpu features not yet supported on this OS"); | 13 | - pa_log ("ARM cpu features not yet supported on this OS"); | |
11 | -#endif /* defined (__linux__) */ | 14 | -#endif /* defined (__linux__) */ | |
12 | 15 | |||
13 | if (flags & PA_CPU_ARM_V6) | 16 | if (flags & PA_CPU_ARM_V6) | |
14 | pa_volume_func_init_arm (flags); | 17 | pa_volume_func_init_arm (flags); |
@@ -1,21 +1,27 @@ | @@ -1,21 +1,27 @@ | |||
1 | $NetBSD: patch-ba,v 1.7 2010/08/10 05:42:34 tsutsui Exp $ | 1 | $NetBSD: patch-ba,v 1.8 2011/05/21 15:33:00 wiz Exp $ | |
2 | 2 | |||
3 | 1. chunk: | |||
4 | Check NetBSD's native atomic_ops in configure even in arm case. | |||
5 | configure checks $host_cpu first, not $host_os on checks for | |||
6 | native atomic operations. | |||
7 | (In upstream it seems fixed to see $host_os first but | |||
8 | it might still have problem around NetBSD version checks) | |||
9 | ||||
10 | 2. chunk: | |||
3 | Fix for security vulnerability reported in CVE-2009-1299, taken from here: | 11 | Fix for security vulnerability reported in CVE-2009-1299, taken from here: | |
4 | 12 | |||
5 | http://git.0pointer.de/?p=pulseaudio.git;a=patch;h=d3efa43d85ac132c6a5a416a2b6f2115f5d577ee | 13 | http://git.0pointer.de/?p=pulseaudio.git;a=patch;h=d3efa43d85ac132c6a5a416a2b6f2115f5d577ee | |
6 | 14 | |||
7 | Also handle atomic_ops for NetBSD/arm. | |||
8 | ||||
9 | --- configure.ac.orig 2009-11-23 04:06:47.000000000 +0000 | 15 | --- configure.ac.orig 2009-11-23 04:06:47.000000000 +0000 | |
10 | +++ configure.ac 2010-08-07 08:06:57.000000000 +0000 | 16 | +++ configure.ac 2010-08-07 08:06:57.000000000 +0000 | |
11 | @@ -220,6 +220,10 @@ | 17 | @@ -220,6 +220,10 @@ | |
12 | AC_MSG_RESULT([yes]) | 18 | AC_MSG_RESULT([yes]) | |
13 | AC_DEFINE_UNQUOTED(ATOMIC_ARM_LINUX_HELPERS, 1, [special arm linux implementation]) | 19 | AC_DEFINE_UNQUOTED(ATOMIC_ARM_LINUX_HELPERS, 1, [special arm linux implementation]) | |
14 | need_libatomic_ops=no | 20 | need_libatomic_ops=no | |
15 | + elif test "x$pulse_target_os" = "xnetbsd" && test "x$atomic_netbsd_helpers" = "xyes"; then | 21 | + elif test "x$pulse_target_os" = "xnetbsd" && test "x$atomic_netbsd_helpers" = "xyes"; then | |
16 | + AC_MSG_RESULT([yes]) | 22 | + AC_MSG_RESULT([yes]) | |
17 | + AC_DEFINE_UNQUOTED(NETBSD_ATOMIC_OPS, 1, [netbsd implementation]) | 23 | + AC_DEFINE_UNQUOTED(NETBSD_ATOMIC_OPS, 1, [netbsd implementation]) | |
18 | + need_libatomic_ops=no | 24 | + need_libatomic_ops=no | |
19 | else | 25 | else | |
20 | AC_MSG_RESULT([no]) | 26 | AC_MSG_RESULT([no]) | |
21 | AC_CACHE_CHECK([compiler support for arm inline asm atomic operations], | 27 | AC_CACHE_CHECK([compiler support for arm inline asm atomic operations], |
@@ -1,14 +1,16 @@ | @@ -1,14 +1,16 @@ | |||
1 | $NetBSD: patch-da,v 1.1 2010/02/01 15:00:20 jmcneill Exp $ | 1 | $NetBSD: patch-da,v 1.2 2011/05/21 15:33:00 wiz Exp $ | |
2 | ||||
3 | O_CLOEXEC is done differently on NetBSD (fcntl + FD_CLOEXEC). | |||
2 | 4 | |||
3 | --- src/modules/module-cli.c.orig 2009-11-23 03:57:05.000000000 +0000 | 5 | --- src/modules/module-cli.c.orig 2009-11-23 03:57:05.000000000 +0000 | |
4 | +++ src/modules/module-cli.c | 6 | +++ src/modules/module-cli.c | |
5 | @@ -105,6 +105,32 @@ int pa__init(pa_module*m) { | 7 | @@ -105,6 +105,32 @@ int pa__init(pa_module*m) { | |
6 | * of log messages, particularly because if stdout and stderr are | 8 | * of log messages, particularly because if stdout and stderr are | |
7 | * dup'ed they share the same O_NDELAY, too. */ | 9 | * dup'ed they share the same O_NDELAY, too. */ | |
8 | 10 | |||
9 | +#ifndef O_CLOEXEC | 11 | +#ifndef O_CLOEXEC | |
10 | + if ((fd = open("/dev/tty", O_RDWR|O_NONBLOCK)) >= 0) { | 12 | + if ((fd = open("/dev/tty", O_RDWR|O_NONBLOCK)) >= 0) { | |
11 | + int flags; | 13 | + int flags; | |
12 | + if ((flags = fcntl(fd, F_GETFD)) < 0) { | 14 | + if ((flags = fcntl(fd, F_GETFD)) < 0) { | |
13 | + pa_log_debug("Couldn't get file handle flags"); | 15 | + pa_log_debug("Couldn't get file handle flags"); | |
14 | + close(fd); | 16 | + close(fd); |
@@ -1,14 +1,16 @@ | @@ -1,14 +1,16 @@ | |||
1 | $NetBSD: patch-db,v 1.1 2010/02/01 15:00:20 jmcneill Exp $ | 1 | $NetBSD: patch-db,v 1.2 2011/05/21 15:33:00 wiz Exp $ | |
2 | ||||
3 | Make udev optional. | |||
2 | 4 | |||
3 | --- src/daemon/default.pa.in.orig 2009-11-23 03:57:05.000000000 +0000 | 5 | --- src/daemon/default.pa.in.orig 2009-11-23 03:57:05.000000000 +0000 | |
4 | +++ src/daemon/default.pa.in | 6 | +++ src/daemon/default.pa.in | |
5 | @@ -49,8 +49,8 @@ load-module module-augment-properties | 7 | @@ -49,8 +49,8 @@ load-module module-augment-properties | |
6 | #load-module module-pipe-sink | 8 | #load-module module-pipe-sink | |
7 | 9 | |||
8 | ### Automatically load driver modules depending on the hardware available | 10 | ### Automatically load driver modules depending on the hardware available | |
9 | -.ifexists module-udev-detect@PA_SOEXT@ | 11 | -.ifexists module-udev-detect@PA_SOEXT@ | |
10 | -load-module module-udev-detect | 12 | -load-module module-udev-detect | |
11 | +.ifexists module-hal-detect@PA_SOEXT@ | 13 | +.ifexists module-hal-detect@PA_SOEXT@ | |
12 | +load-module module-hal-detect | 14 | +load-module module-hal-detect | |
13 | .else | 15 | .else | |
14 | ### Alternatively use the static hardware detection module (for systems that | 16 | ### Alternatively use the static hardware detection module (for systems that |
@@ -1,14 +1,17 @@ | @@ -1,14 +1,17 @@ | |||
1 | $NetBSD: patch-dc,v 1.1 2010/02/01 15:00:20 jmcneill Exp $ | 1 | $NetBSD: patch-dc,v 1.2 2011/05/21 15:33:00 wiz Exp $ | |
2 | ||||
3 | If oss.originating_device hal properly isn't availble, try | |||
4 | sound.originating_device. | |||
2 | 5 | |||
3 | --- src/modules/module-hal-detect.c.orig 2009-09-10 00:04:58.000000000 +0000 | 6 | --- src/modules/module-hal-detect.c.orig 2009-09-10 00:04:58.000000000 +0000 | |
4 | +++ src/modules/module-hal-detect.c | 7 | +++ src/modules/module-hal-detect.c | |
5 | @@ -337,6 +337,11 @@ static int hal_device_load_oss(struct us | 8 | @@ -337,6 +337,11 @@ static int hal_device_load_oss(struct us | |
6 | 9 | |||
7 | /* We store only one entry per card, hence we look for the originating device */ | 10 | /* We store only one entry per card, hence we look for the originating device */ | |
8 | originating_udi = libhal_device_get_property_string(u->context, udi, "oss.originating_device", &error); | 11 | originating_udi = libhal_device_get_property_string(u->context, udi, "oss.originating_device", &error); | |
9 | + if (dbus_error_is_set(&error) || !originating_udi) { | 12 | + if (dbus_error_is_set(&error) || !originating_udi) { | |
10 | + if (dbus_error_is_set(&error)) | 13 | + if (dbus_error_is_set(&error)) | |
11 | + dbus_error_free(&error); | 14 | + dbus_error_free(&error); | |
12 | + originating_udi = libhal_device_get_property_string(u->context, udi, "sound.originating_device", &error); | 15 | + originating_udi = libhal_device_get_property_string(u->context, udi, "sound.originating_device", &error); | |
13 | + } | 16 | + } | |
14 | if (dbus_error_is_set(&error) || !originating_udi) | 17 | if (dbus_error_is_set(&error) || !originating_udi) |
@@ -1,14 +1,16 @@ | @@ -1,14 +1,16 @@ | |||
1 | $NetBSD: patch-dd,v 1.1 2010/02/02 12:39:14 jmcneill Exp $ | 1 | $NetBSD: patch-dd,v 1.2 2011/05/21 15:33:00 wiz Exp $ | |
2 | ||||
3 | Avoid autoreconf from adding a git dependency. | |||
2 | 4 | |||
3 | --- git-version-gen.orig 2010-02-02 06:54:03.000000000 -0500 | 5 | --- git-version-gen.orig 2010-02-02 06:54:03.000000000 -0500 | |
4 | +++ git-version-gen 2010-02-02 06:55:16.000000000 -0500 | 6 | +++ git-version-gen 2010-02-02 06:55:16.000000000 -0500 | |
5 | @@ -74,76 +74,10 @@ case $# in | 7 | @@ -74,76 +74,10 @@ case $# in | |
6 | esac | 8 | esac | |
7 | 9 | |||
8 | tarball_version_file=$1 | 10 | tarball_version_file=$1 | |
9 | -nl=' | 11 | -nl=' | |
10 | -' | 12 | -' | |
11 | - | 13 | - | |
12 | -# First see if there is a tarball-only version file. | 14 | -# First see if there is a tarball-only version file. | |
13 | -# then try "git describe", then default. | 15 | -# then try "git describe", then default. | |
14 | -if test -f $tarball_version_file | 16 | -if test -f $tarball_version_file |
@@ -1,14 +1,16 @@ | @@ -1,14 +1,16 @@ | |||
1 | $NetBSD: patch-poll_c-build-fix,v 1.1 2011/01/20 13:08:59 ahoka Exp $ | 1 | $NetBSD: patch-poll_c-build-fix,v 1.2 2011/05/21 15:33:00 wiz Exp $ | |
2 | ||||
3 | Fix compilation on platforms without poll(). | |||
2 | 4 | |||
3 | --- src/pulsecore/poll.c.orig 2009-03-05 11:28:10.000000000 +0000 | 5 | --- src/pulsecore/poll.c.orig 2009-03-05 11:28:10.000000000 +0000 | |
4 | +++ src/pulsecore/poll.c | 6 | +++ src/pulsecore/poll.c | |
5 | @@ -41,11 +41,16 @@ | 7 | @@ -41,11 +41,16 @@ | |
6 | #include <sys/select.h> | 8 | #include <sys/select.h> | |
7 | #endif | 9 | #endif | |
8 | 10 | |||
9 | +#ifdef HAVE_SYS_SOCKET_H | 11 | +#ifdef HAVE_SYS_SOCKET_H | |
10 | +#include <sys/socket.h> | 12 | +#include <sys/socket.h> | |
11 | +#endif | 13 | +#endif | |
12 | + | 14 | + | |
13 | #include "winsock.h" | 15 | #include "winsock.h" | |
14 | 16 |
$NetBSD: patch-de,v 1.1 2011/05/21 15:33:00 wiz Exp $
pthread_key_create returns 0 on success; return values on failure are
not defined.
--- src/pulsecore/thread-posix.c.orig 2010-06-13 14:15:54.000000000 +0000
+++ src/pulsecore/thread-posix.c
@@ -172,7 +172,7 @@ pa_tls* pa_tls_new(pa_free_cb_t free_cb)
t = pa_xnew(pa_tls, 1);
- if (pthread_key_create(&t->key, free_cb) < 0) {
+ if (pthread_key_create(&t->key, free_cb)) {
pa_xfree(t);
return NULL;
}