interposer: disable for simulator builds

This commit is contained in:
osy 2021-05-17 19:44:28 -07:00
parent 1719710cf2
commit 438d818408
1 changed files with 3 additions and 0 deletions

View File

@ -14,6 +14,8 @@
// limitations under the License. // limitations under the License.
// //
#include <TargetConditionals.h>
#if !TARGET_OS_SIMULATOR
#include <IOKit/IOKitLib.h> #include <IOKit/IOKitLib.h>
#include <unistd.h> #include <unistd.h>
@ -54,3 +56,4 @@ __attribute__ ((used, section ("__DATA,__interpose")))
static struct { static struct {
void *replacement, *original; void *replacement, *original;
} replace_IOServiceAuthorize = { IOServiceAuthorizeReplacement, IOServiceAuthorize }; } replace_IOServiceAuthorize = { IOServiceAuthorizeReplacement, IOServiceAuthorize };
#endif