X-Git-Url: https://git.saurik.com/apple/dyld.git/blobdiff_plain/412ebb8e3cc35d457058c31310d89ef96b7c416d..19894a1236eae932b4028640f24ab843f691d4e4:/unit-tests/test-cases/text-relocs-perms/foo.c?ds=sidebyside diff --git a/unit-tests/test-cases/text-relocs-perms/foo.c b/unit-tests/test-cases/text-relocs-perms/foo.c index 6a03b28..b644c3d 100644 --- a/unit-tests/test-cases/text-relocs-perms/foo.c +++ b/unit-tests/test-cases/text-relocs-perms/foo.c @@ -23,6 +23,7 @@ #include // fprintf(), NULL #include // exit(), EXIT_SUCCESS #include +#include #include #include #include @@ -30,6 +31,7 @@ #include "test.h" // PASS(), FAIL(), XPASS(), XFAIL() +#if __MAC_OS_X_VERSION_MIN_REQUIRED static vm_prot_t getPermission(void* addr) { @@ -98,4 +100,12 @@ void foo() checkStubs(stubAddr); } +#else + +void foo() +{ + // iOS does not have text relocs +} + +#endif