]> git.saurik.com Git - apple/xnu.git/blobdiff - tests/vm_test_code_signing_helper.c
xnu-7195.101.1.tar.gz
[apple/xnu.git] / tests / vm_test_code_signing_helper.c
index 0c429d725040c2e408bc51ed45a29711765df450..7c799c77540db6e079fdbb226e7f194d96a99a35 100644 (file)
@@ -1,3 +1,4 @@
+#include <TargetConditionals.h>
 #include <errno.h>
 #include <stdio.h>
 #include <stdlib.h>
@@ -140,13 +141,13 @@ main(
        fprintf(stdout, "%s: WARNING: unsigned code was executed\n",
            cmdname);
 
-#if CONFIG_EMBEDDED
+#if !TARGET_OS_OSX
        /* fail: unsigned code was executed */
        fprintf(stdout, "%s: FAIL\n", cmdname);
        exit(1);
-#else /* CONFIG_EMBEDDED */
+#else /* !TARGET_OS_OSX */
        /* no fail: unsigned code is only prohibited on embedded platforms */
        fprintf(stdout, "%s: SUCCESS\n", cmdname);
        exit(0);
-#endif /* CONFIG_EMBEDDED */
+#endif /* !TARGET_OS_OSX */
 }