mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2024-12-26 07:26:15 +01:00
Merge branch 'old-mac-sdk' into 'main'
gio: fix build on older macOS SDKs See merge request GNOME/glib!3385
This commit is contained in:
commit
9f3c4ec940
@ -1273,7 +1273,9 @@ get_gio_module_dir (void)
|
||||
module_dir = g_strdup (GIO_MODULE_DIR);
|
||||
#ifdef __APPLE__
|
||||
#include "TargetConditionals.h"
|
||||
#if TARGET_OS_OSX
|
||||
/* Only auto-relocate on macOS, not watchOS etc; older macOS SDKs only define TARGET_OS_MAC */
|
||||
#if (defined (TARGET_OS_OSX) && TARGET_OS_OSX) || \
|
||||
(!defined (TARGET_OS_OSX) && defined (TARGET_OS_MAC) && TARGET_OS_MAC)
|
||||
#include <dlfcn.h>
|
||||
{
|
||||
g_autofree gchar *path = NULL;
|
||||
|
Loading…
Reference in New Issue
Block a user