From 6136ac82b96b29e1be2a51be214ad7b4c0181768 Mon Sep 17 00:00:00 2001 From: Dentomologist Date: Fri, 27 Nov 2020 16:42:08 -0800 Subject: [PATCH] Fix liblzma config on macOS /Externals/liblzma/config.h #defines HAVE_PTHREAD_CONDATTR_SETCLOCK which results in /Externals/liblzma/tuklib/mythread.h calling the function pthread_condattr_setclock. This function doesn't exist in macOS 10.12+, which are the only macOS versions Dolphin supports, but inserting an include guard makes macOS use an alternate function. --- Externals/liblzma/config.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Externals/liblzma/config.h b/Externals/liblzma/config.h index 1833090f91..21f551ad7e 100644 --- a/Externals/liblzma/config.h +++ b/Externals/liblzma/config.h @@ -190,7 +190,9 @@ #define HAVE_POSIX_FADVISE 1 /* Define to 1 if you have the `pthread_condattr_setclock' function. */ +#ifndef __APPLE__ #define HAVE_PTHREAD_CONDATTR_SETCLOCK 1 +#endif /* Have PTHREAD_PRIO_INHERIT. */ #define HAVE_PTHREAD_PRIO_INHERIT 1