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.
This commit is contained in:
Dentomologist 2020-11-27 16:42:08 -08:00
parent 26302c2257
commit 6136ac82b9

View File

@ -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