From 83ad7b2c771f018091d44db757fb87b1c9e5430c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Karel=20Ko=C4=8D=C3=AD?= Date: Thu, 23 Jul 2020 23:28:50 +0200 Subject: mpd: remove and try to use alsa compatibility instead --- mpd/stacksize.patch | 17 ----------------- 1 file changed, 17 deletions(-) delete mode 100644 mpd/stacksize.patch (limited to 'mpd/stacksize.patch') diff --git a/mpd/stacksize.patch b/mpd/stacksize.patch deleted file mode 100644 index 291a2f2..0000000 --- a/mpd/stacksize.patch +++ /dev/null @@ -1,17 +0,0 @@ ---- ./src/thread/Thread.cxx.orig -+++ ./src/thread/Thread.cxx -@@ -35,8 +35,12 @@ - if (handle == nullptr) - throw MakeLastError("Failed to create thread"); - #else -- int e = pthread_create(&handle, nullptr, ThreadProc, this); -- -+ pthread_attr_t attr, *attrptr = nullptr; -+ if ((pthread_attr_init(&attr) == 0) -+ && (pthread_attr_setstacksize(&attr, 1024*1024) == 0)) { -+ attrptr = &attr; -+ } -+ int e = pthread_create(&handle, attrptr, ThreadProc, this); - if (e != 0) - throw MakeErrno(e, "Failed to create thread"); - #endif -- cgit v1.2.3