pkgsrc-WIP-changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
pulseaudio-git: Use paccept(2) in the Linux path with accept4()
Module Name: pkgsrc-wip
Committed By: Kamil Rytarowski <n54%gmx.com@localhost>
Pushed By: kamil
Date: Sat Nov 21 17:30:43 2015 +0100
Changeset: d7184b5ada44c1ab19730db63589717408e7cb52
Modified Files:
pulseaudio-git/distinfo
pulseaudio-git/patches/patch-configure.ac
pulseaudio-git/patches/patch-src_pulsecore_core-util.c
Log Message:
pulseaudio-git: Use paccept(2) in the Linux path with accept4()
To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=d7184b5ada44c1ab19730db63589717408e7cb52
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
diffstat:
pulseaudio-git/distinfo | 4 ++--
pulseaudio-git/patches/patch-configure.ac | 9 +++++++++
pulseaudio-git/patches/patch-src_pulsecore_core-util.c | 13 +++++++++++++
3 files changed, 24 insertions(+), 2 deletions(-)
diffs:
diff --git a/pulseaudio-git/distinfo b/pulseaudio-git/distinfo
index 6676ac5..53f5ef1 100644
--- a/pulseaudio-git/distinfo
+++ b/pulseaudio-git/distinfo
@@ -5,7 +5,7 @@ RMD160 (pulseaudio-7.1.tar.gz) = f6138695f1cfddfcb72654e8b204b0731c8a2234
SHA512 (pulseaudio-7.1.tar.gz) = c2b8946a4dfb4fa2a8c7a504d9375bd51086c0f2f40aa6ddbb56115815a01665f491507d367baa375bc9595e31bb0d88f15208a1c2ad507bfa40e1bde1213091
Size (pulseaudio-7.1.tar.gz) = 2686090 bytes
SHA1 (patch-aa) = f721dd6e72aec9945cfe04bb2133551c56378c6b
-SHA1 (patch-configure.ac) = 7b5bc286958823a3dda294be3ec0f875fff13c35
+SHA1 (patch-configure.ac) = 04342bcb90285befb6f396d8f2d7571e30d816b9
SHA1 (patch-src_Makefile.am) = f020fc98a964a263e3fb98e6d1104ae975a350a4
SHA1 (patch-src_Makefile.in) = a670dbd4b6a3cfafc2910c2464d381986be0d772
SHA1 (patch-src_daemon_caps.c) = 3e7c1b179d0860564753dc14fd3cdec8355399e8
@@ -13,7 +13,7 @@ SHA1 (patch-src_daemon_main.c) = 5e82d79638ed57a17fba4269fa2b069faca5a228
SHA1 (patch-src_modules_module-detect.c) = dc96106020cd117ee80cfda03d9e97673cb36fc0
SHA1 (patch-src_modules_module-solaris.c) = 366507f7944d97c2a19407fa86b7eda3c61cccb6
SHA1 (patch-src_modules_oss_module-oss.c) = c0579ef779c103d3fc2646ca637b4c927227e947
-SHA1 (patch-src_pulsecore_core-util.c) = 95565a0a33e8db9ccbcf4638f2d4f4c079947f0c
+SHA1 (patch-src_pulsecore_core-util.c) = 77e9491421b544e5e4c86e65861abf80fa7dd5a1
SHA1 (patch-src_pulsecore_mix__neon.c) = 74e9eb7665db8cd8bf18d454f67627bdefa7f69c
SHA1 (patch-src_pulsecore_sample-util.h) = 372b55bfee68bb259df686fc300855503deb59e2
SHA1 (patch-src_pulsecore_svolume__mmx.c) = 53c952f1cd2c94e792cf689a71fcf31b2ff7f3de
diff --git a/pulseaudio-git/patches/patch-configure.ac b/pulseaudio-git/patches/patch-configure.ac
index dacab61..ba8308a 100644
--- a/pulseaudio-git/patches/patch-configure.ac
+++ b/pulseaudio-git/patches/patch-configure.ac
@@ -93,6 +93,15 @@ $NetBSD: patch-configure.ac,v 1.5 2015/02/25 23:40:35 ryoon Exp $
AC_DEFINE([HAVE_CLOCK_GETTIME], 1, [Using clock_gettime() replacement])
HAVE_BONJOUR=1
fi
+@@ -572,7 +567,7 @@ AC_CHECK_FUNCS_ONCE([strerror_r])
+ AC_CHECK_FUNCS_ONCE([lstat])
+
+ # Non-standard
+-AC_CHECK_FUNCS_ONCE([setresuid setresgid setreuid setregid seteuid setegid ppoll strsignal sig2str strtod_l pipe2 accept4])
++AC_CHECK_FUNCS_ONCE([setresuid setresgid setreuid setregid seteuid setegid ppoll strsignal sig2str strtod_l pipe2 accept4 paccept])
+
+ AC_FUNC_ALLOCA
+
@@ -1001,7 +996,7 @@ AS_IF([test "x$HAVE_DBUS" = "x1"], AC_DE
PA_MACHINE_ID="${sysconfdir}/machine-id"
diff --git a/pulseaudio-git/patches/patch-src_pulsecore_core-util.c b/pulseaudio-git/patches/patch-src_pulsecore_core-util.c
index c50c98e..4d306ed 100644
--- a/pulseaudio-git/patches/patch-src_pulsecore_core-util.c
+++ b/pulseaudio-git/patches/patch-src_pulsecore_core-util.c
@@ -23,3 +23,16 @@ $NetBSD: patch-src_pulsecore_core-util.c,v 1.1 2015/09/25 14:37:27 ryoon Exp $
#include <mach/mach_init.h>
#include <mach/thread_act.h>
#include <mach/thread_policy.h>
+@@ -3501,6 +3503,12 @@ int pa_accept_cloexec(int sockfd, struct
+
+ #endif
+
++#ifdef HAVE_PACCEPT
++ errno = 0;
++ if ((fd = paccept(sockfd, addr, addrlen, NULL, SOCK_CLOEXEC)) >= 0)
++ goto finish;
++#endif
++
+ if ((fd = accept(sockfd, addr, addrlen)) >= 0)
+ goto finish;
+
Home |
Main Index |
Thread Index |
Old Index