diff options
author | Karel Kočí <cynerd@email.cz> | 2020-03-17 15:31:05 +0100 |
---|---|---|
committer | Karel Kočí <cynerd@email.cz> | 2020-03-17 15:31:05 +0100 |
commit | b631d0548ed2512c33989f7b5c73ee6dd1753eaa (patch) | |
tree | 41f79f682c19ea720c9fa7671f0f6fcfc0ab78b1 /mpd/stacksize.patch | |
parent | fed03e6840348b38fe3164381b9fce8b317c2fda (diff) | |
download | alpine-personal-pkgs-b631d0548ed2512c33989f7b5c73ee6dd1753eaa.tar.gz alpine-personal-pkgs-b631d0548ed2512c33989f7b5c73ee6dd1753eaa.tar.bz2 alpine-personal-pkgs-b631d0548ed2512c33989f7b5c73ee6dd1753eaa.zip |
mpd: add and compile against pulseaudio
Diffstat (limited to 'mpd/stacksize.patch')
-rw-r--r-- | mpd/stacksize.patch | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/mpd/stacksize.patch b/mpd/stacksize.patch new file mode 100644 index 0000000..291a2f2 --- /dev/null +++ b/mpd/stacksize.patch @@ -0,0 +1,17 @@ +--- ./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 |