--- ./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() {