From 46c286719f4f935a710c5f948512711ba456ee03 Mon Sep 17 00:00:00 2001 From: Aaron Culliney Date: Sat, 14 Nov 2015 11:09:33 -0800 Subject: [PATCH] Fix Android build after Mac iteration --- src/common.h | 2 +- src/misc.c | 2 -- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/src/common.h b/src/common.h index fbd0171d..ee75c5c0 100644 --- a/src/common.h +++ b/src/common.h @@ -16,7 +16,7 @@ # define _GNU_SOURCE 1 #endif -#if !defined(TEMP_FAILURE_RETRY) +#ifdef __APPLE__ # warning DEFINING CUSTOM TEMP_FAILURE_RETRY(x) macro # define TEMP_FAILURE_RETRY(exp) ({ \ typeof (exp) _rc; \ diff --git a/src/misc.c b/src/misc.c index ddb72393..8412a737 100644 --- a/src/misc.c +++ b/src/misc.c @@ -68,8 +68,6 @@ static void _shutdown_threads(void) { static struct timespec ts = { .tv_sec=0, .tv_nsec=33333333 }; nanosleep(&ts, NULL); // 30Hz framerate } while (1); -# elif !defined(__APPLE__) -# error TODO FIXME ... verify leaks-n-things with Valgrind on unknown platform # endif #endif }