/*
- * Copyright (c) 2005 Apple Computer, Inc. All rights reserved.
+ * Copyright (c) 2005-2009 Apple Inc. All rights reserved.
*
* @APPLE_LICENSE_HEADER_START@
*
*/
#include <stdlib.h>
#include <mach-o/dyld.h>
+#include <dlfcn.h>
#include "test.h"
}
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;