From 53677172f24350e9cf55af86de49fe0568aaf78c Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Thu, 17 Sep 2015 22:56:35 +0200 Subject: [PATCH] notify: use "constexpr" only with glibc The Mutex and Cond constructors are only "constexpr" with glibc, and this is what this #ifdef is about. Backport of commit 459a812a See http://bugs.musicpd.org/view.php?id=4511 --- NEWS | 1 + src/notify.hxx | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/NEWS b/NEWS index a773fef64..e01dd3a01 100644 --- a/NEWS +++ b/NEWS @@ -1,4 +1,5 @@ ver 0.19.15 (not yet released) +* fix more build failures on non-glibc builds due to constexpr Mutex ver 0.19.14 (2016/03/18) * decoder diff --git a/src/notify.hxx b/src/notify.hxx index 3e62a0103..c96390b8a 100644 --- a/src/notify.hxx +++ b/src/notify.hxx @@ -28,7 +28,7 @@ struct notify { Cond cond; bool pending; -#if !defined(WIN32) && !defined(__NetBSD__) && !defined(__BIONIC__) +#ifdef __GLIBC__ constexpr #endif notify():pending(false) {}