X-Git-Url: https://git.saurik.com/apple/dyld.git/blobdiff_plain/0959b6d4289bd106fddb7fe7d84a346159895fdd..19894a1236eae932b4028640f24ab843f691d4e4:/unit-tests/test-cases/image-suffix/main.c diff --git a/unit-tests/test-cases/image-suffix/main.c b/unit-tests/test-cases/image-suffix/main.c index 79edd75..204744e 100644 --- a/unit-tests/test-cases/image-suffix/main.c +++ b/unit-tests/test-cases/image-suffix/main.c @@ -1,5 +1,5 @@ /* - * Copyright (c) 2005 Apple Computer, Inc. All rights reserved. + * Copyright (c) 2005-2009 Apple Inc. All rights reserved. * * @APPLE_LICENSE_HEADER_START@ * @@ -22,6 +22,7 @@ */ #include #include +#include #include "test.h" @@ -33,7 +34,7 @@ int main(int argc, const char* argv[]) } uint32_t imageCount = _dyld_image_count(); - const struct mach_header* mh = NSAddImage(argv[1], 0); + dlopen(argv[1], 0); if ( imageCount != _dyld_image_count() ) { FAIL("image count changed"); return EXIT_SUCCESS;