]> git.ipfire.org Git - thirdparty/libtool.git/commitdiff
* libltdl/loaders/loadlibrary.c (vm_open): Silence gcc warnings.
authorEric Blake <ebb9@byu.net>
Fri, 23 Sep 2005 07:58:42 +0000 (07:58 +0000)
committerRalf Wildenhues <Ralf.Wildenhues@gmx.de>
Fri, 23 Sep 2005 07:58:42 +0000 (07:58 +0000)
[__CYGWIN__]: Include <sys/cygwin.h> for prototype.

ChangeLog
libltdl/loaders/loadlibrary.c

index 3478f934fb71727a7e42ffe94a842b6fbfd8ee2e..7be3e240c05ec550d917855f58f1e4e08812b493 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2005-09-23  Eric Blake  <ebb9@byu.net>  (tiny change)
+
+       * libltdl/loaders/loadlibrary.c (vm_open): Silence gcc warnings.
+       [__CYGWIN__]: Include <sys/cygwin.h> for prototype.
+
 2005-09-22  Gary V. Vaughan  <gary@gnu.org>
 
        * bootstrap: Don't clobber the working copy metadata in
index 97d14fe69288da96821b00e5eef9af4d6d59d448..12f8a8c0e889f13fb2eb65a5fcac1ab2d4b9c440 100644 (file)
@@ -1,5 +1,5 @@
 /* loader-loadlibrary.c --  dynamic linking for Win32
-   Copyright (C) 1998, 1999, 2000, 2004 Free Software Foundation, Inc.
+   Copyright (C) 1998, 1999, 2000, 2004, 2005 Free Software Foundation, Inc.
    Originally by Thomas Tanner <tanner@ffii.org>
 
    NOTE: The canonical source of this file is maintained with the
@@ -30,6 +30,10 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
 #include "lt__private.h"
 #include "lt_dlloader.h"
 
+#if defined(__CYGWIN__)
+# include <sys/cygwin.h>
+#endif
+
 /* Use the preprocessor to rename non-static symbols to avoid namespace
    collisions when the loader code is statically linked into libltdl.
    Use the "<module_name>_LTX_" prefix so that the symbol addresses can
@@ -92,7 +96,6 @@ static lt_module
 vm_open (lt_user_data loader_data, const char *filename)
 {
   lt_module    module     = 0;
-  const char   *errormsg   = 0;
   char        *searchname = 0;
   char        *ext;
   char         self_name_buf[MAX_PATH];
@@ -158,7 +161,7 @@ vm_open (lt_user_data loader_data, const char *filename)
   {
     lt__handle *        cur        = 0;
 
-    while (cur = (lt__handle *) lt_dlhandle_next ((lt_dlhandle) cur))
+    while ((cur = (lt__handle *) lt_dlhandle_next ((lt_dlhandle) cur)))
       {
         if (!cur->module)
           {