aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2012-09-22 17:02:06 +0000
committerChristian Grothoff <christian@grothoff.org>2012-09-22 17:02:06 +0000
commitbfe7656c6e8c9cf666270d77dc91bad5135292a0 (patch)
treed1e83e04b4d5c86e408cad24c0cf3cd9eafae5c3
parentc3a8e8bb8f4e746b2f88e52a12bab14182e7d753 (diff)
downloadlibextractor-bfe7656c6e8c9cf666270d77dc91bad5135292a0.tar.gz
libextractor-bfe7656c6e8c9cf666270d77dc91bad5135292a0.zip
-fixing OSX build issues
-rw-r--r--src/main/extractor_plugpath.c3
1 files changed, 2 insertions, 1 deletions
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 ()
257{ 257{
258 const char *path; 258 const char *path;
259 char *s; 259 char *s;
260 char *p;
260 unsigned int i; 261 unsigned int i;
261 int c; 262 int c;
262 263
263 c = _dyld_image_count (); 264 c = _dyld_image_count ();
264 for (i = 0; i < c; i++) 265 for (i = 0; i < c; i++)
265 { 266 {
266 if (_dyld_get_image_header (i) != &_mh_dylib_header) 267 if (((void *) _dyld_get_image_header (i)) != (void *) &_mh_dylib_header)
267 continue; 268 continue;
268 path = _dyld_get_image_name (i); 269 path = _dyld_get_image_name (i);
269 if ( (NULL == path) || (0 == strlen (path)) ) 270 if ( (NULL == path) || (0 == strlen (path)) )