libtool-patches
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PATCH] libltdl: fix dyld loader build failure


From: Mark Harris
Subject: [PATCH] libltdl: fix dyld loader build failure
Date: Mon, 11 Jul 2016 21:29:37 -0700

Fix for undefined symbol strneq.  The original working code in 97ade81
used !strcmp() to check for string equality before it was incorrectly
replaced with strneq().  This loader is built on OS X before 10.4.
---
 libltdl/loaders/dyld.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/libltdl/loaders/dyld.c b/libltdl/loaders/dyld.c
index bfd5869..d666128 100644
--- a/libltdl/loaders/dyld.c
+++ b/libltdl/loaders/dyld.c
@@ -406,7 +406,7 @@ lt__nsmodule_get_header (NSModule module)
   while (i > 0)
     {
       --i;
-      if (strneq (_dyld_get_image_name (i), modname))
+      if (STREQ (_dyld_get_image_name (i), modname))
        {
          mh = _dyld_get_image_header (i);
          break;
@@ -455,7 +455,7 @@ lt__match_loadedlib (const char *name)
 
       --i;
       id = lt__header_get_instnam (_dyld_get_image_header (i));
-      if (id && strneq (id, name))
+      if (id && STREQ (id, name))
        {
          mh = _dyld_get_image_header (i);
          break;
-- 
2.9.0




reply via email to

[Prev in Thread] Current Thread [Next in Thread]