From bfe7656c6e8c9cf666270d77dc91bad5135292a0 Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Sat, 22 Sep 2012 17:02:06 +0000 Subject: -fixing OSX build issues --- src/main/extractor_plugpath.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main/extractor_plugpath.c b/src/main/extractor_plugpath.c index e6a9582..157b59c 100644 --- a/src/main/extractor_plugpath.c +++ b/src/main/extractor_plugpath.c @@ -257,13 +257,14 @@ get_path_from_dyld_image () { const char *path; char *s; + char *p; unsigned int i; int c; c = _dyld_image_count (); for (i = 0; i < c; i++) { - if (_dyld_get_image_header (i) != &_mh_dylib_header) + if (((void *) _dyld_get_image_header (i)) != (void *) &_mh_dylib_header) continue; path = _dyld_get_image_name (i); if ( (NULL == path) || (0 == strlen (path)) ) -- cgit v1.2.3