diff options
author | Carlo Landmeter <clandmeter@gmail.com> | 2015-06-25 13:08:51 +0200 |
---|---|---|
committer | Carlo Landmeter <clandmeter@gmail.com> | 2015-06-25 13:09:59 +0200 |
commit | ffb26010ba794a7d4a9d050cbf07c4590ce60788 (patch) | |
tree | 07dc8cc10cff2a66e94b9cd46f6c489d27f4a4f5 /main/mpd/musl-gcc5-fixes.patch | |
parent | 9c093d715e59e94412effe5605c80a55bb34bc9b (diff) |
main/mpd: upgrade to 0.19.10 and fix build with gcc5
http://bugs.musicpd.org/view.php?id=4110
Diffstat (limited to 'main/mpd/musl-gcc5-fixes.patch')
-rw-r--r-- | main/mpd/musl-gcc5-fixes.patch | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/main/mpd/musl-gcc5-fixes.patch b/main/mpd/musl-gcc5-fixes.patch new file mode 100644 index 00000000000..aeb28574e6f --- /dev/null +++ b/main/mpd/musl-gcc5-fixes.patch @@ -0,0 +1,33 @@ +--- ./src/notify.hxx.orig ++++ ./src/notify.hxx +@@ -28,7 +28,7 @@ + Cond cond; + bool pending; + +-#if !defined(WIN32) && !defined(__NetBSD__) && !defined(__BIONIC__) ++#if !defined(WIN32) && !defined(__NetBSD__) && !defined(__BIONIC__) && defined(__GLIBC__) + constexpr + #endif + notify():pending(false) {} +--- ./src/thread/PosixCond.hxx.orig ++++ ./src/thread/PosixCond.hxx +@@ -41,7 +41,7 @@ + pthread_cond_t cond; + + public: +-#if defined(__NetBSD__) || defined(__BIONIC__) ++#if defined(__NetBSD__) || defined(__BIONIC__) || !defined(__GLIBC__) + /* NetBSD's PTHREAD_COND_INITIALIZER is not compatible with + "constexpr" */ + PosixCond() { +--- ./src/thread/PosixMutex.hxx.orig ++++ ./src/thread/PosixMutex.hxx +@@ -41,7 +41,7 @@ + pthread_mutex_t mutex; + + public: +-#if defined(__NetBSD__) || defined(__BIONIC__) ++#if defined(__NetBSD__) || defined(__BIONIC__) || !defined(__GLIBC__) + /* NetBSD's PTHREAD_MUTEX_INITIALIZER is not compatible with + "constexpr" */ + PosixMutex() { |