From: James Su Date: Sat, 27 Jan 2007 16:22:16 +0000 (+0000) Subject: * libltdl/ltdl.c (lt_dlmutex_register): Fix usage of old unlock X-Git-Tag: release-1-5-23b~15 X-Git-Url: http://git.ipfire.org/gitweb/gitweb.cgi?a=commitdiff_plain;h=1b02a4f0cbe145261b6479e3d005bb8e5d3dbe4a;p=thirdparty%2Flibtool.git * libltdl/ltdl.c (lt_dlmutex_register): Fix usage of old unlock function. Also replace the seterror function. * THANKS: Update. --- diff --git a/ChangeLog b/ChangeLog index abdd1ba21..5c9245610 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2007-01-27 James Su + + * libltdl/ltdl.c (lt_dlmutex_register): Fix usage of old unlock + function. Also replace the seterror function. + * THANKS: Update. + 2007-01-24 Reuben Thomas (tiny change) * doc/libtool.texi (Inter-library dependencies): Fix typo. diff --git a/THANKS b/THANKS index 2220a17aa..1049db7b0 100644 --- a/THANKS +++ b/THANKS @@ -88,6 +88,7 @@ Howard Chu hyc@highlandsun.com Ian Lance Taylor ian@cygnus.com Jacob Meuser jakemsr@jakemsr.com + James Su james.su@gmail.com Jeff Squyres jsquyres@lam-mpi.org Jeremy C. Reed reed@reedmedia.net Joel N. Weber II devnull@gnu.org diff --git a/libltdl/ltdl.c b/libltdl/ltdl.c index d3528a7f4..a13b83dec 100644 --- a/libltdl/ltdl.c +++ b/libltdl/ltdl.c @@ -918,7 +918,7 @@ lt_dlmutex_register (lock, unlock, seterror, geterror) lt_dlmutex_seterror *seterror; lt_dlmutex_geterror *geterror; { - lt_dlmutex_unlock *old_unlock = unlock; + lt_dlmutex_unlock *old_unlock = lt_dlmutex_unlock_func; int errors = 0; /* Lock using the old lock() callback, if any. */ @@ -929,6 +929,7 @@ lt_dlmutex_register (lock, unlock, seterror, geterror) { lt_dlmutex_lock_func = lock; lt_dlmutex_unlock_func = unlock; + lt_dlmutex_seterror_func = seterror; lt_dlmutex_geterror_func = geterror; } else