avoid linking against ___cxa_guard_acquire

and ___cxa_guard_release. Fixes build with clang on OSX.
This commit is contained in:
Andrew Kelley 2015-07-23 11:58:28 -07:00
parent 8177d2f46d
commit 057f4ea07e

View file

@ -195,9 +195,9 @@ static void *run_pthread(void *userdata) {
} }
#endif #endif
static atomic_flag rtprio_seen = ATOMIC_FLAG_INIT;
static void emit_rtprio_warning(void) { static void emit_rtprio_warning(void) {
static atomic_flag seen = ATOMIC_FLAG_INIT; if (!rtprio_seen.test_and_set()) {
if (!seen.test_and_set()) {
fprintf(stderr, "warning: unable to set high priority thread: Operation not permitted\n"); fprintf(stderr, "warning: unable to set high priority thread: Operation not permitted\n");
fprintf(stderr, "See https://github.com/andrewrk/genesis/wiki/" fprintf(stderr, "See https://github.com/andrewrk/genesis/wiki/"
"warning:-unable-to-set-high-priority-thread:-Operation-not-permitted\n"); "warning:-unable-to-set-high-priority-thread:-Operation-not-permitted\n");