Source/WTF/ChangeLog

 12019-05-10 Youenn Fablet <youenn@apple.com>
 2
 3 Use realpath for dlopen_preflight
 4 https://bugs.webkit.org/show_bug.cgi?id=197803
 5
 6 Reviewed by NOBODY (OOPS!).
 7
 8 * wtf/cocoa/SoftLinking.h:
 9
1102019-05-08 Alex Christensen <achristensen@webkit.org>
211
312 Add SPI to set HSTS storage directory

Source/WTF/wtf/cocoa/SoftLinking.h

2424
2525#pragma once
2626
27 #import <wtf/Assertions.h>
2827#import <dlfcn.h>
2928#import <objc/runtime.h>
 29#import <wtf/Assertions.h>
 30#import <wtf/FileSystem.h>
3031
3132#pragma mark - Soft-link macros for use within a single source file
3233

6667#define SOFT_LINK_FRAMEWORK_OPTIONAL_PREFLIGHT(framework) \
6768 static bool framework##LibraryIsAvailable() \
6869 { \
69  static bool frameworkLibraryIsAvailable = dlopen_preflight("/System/Library/Frameworks/" #framework ".framework/" #framework); \
 70 static bool frameworkLibraryIsAvailable = dlopen_preflight(FileSystem::realPath("/System/Library/Frameworks/" #framework ".framework/" #framework ""_s).utf8().data()); \
7071 return frameworkLibraryIsAvailable; \
7172 }
7273