+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
/* 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
#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
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];
{
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)
{