From f4993ae3b81f7ae3196819dcb2e997316959541e Mon Sep 17 00:00:00 2001 From: "Gary V. Vaughan" Date: Thu, 27 Jan 2000 15:07:49 +0000 Subject: [PATCH] * libltdl/ltdl.c (sys_dl_init, sys_dl_exit, sys_dl_open, sys_dl_close, sys_dl_sym): Preprocess these away on cygwin to avoid spurious error messages. --- ChangeLog | 6 ++++++ libltdl/ltdl.c | 6 +++++- 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index ffae703b2..6b2fb0861 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2000-01-27 Gary V. Vaughan + + * libltdl/ltdl.c (sys_dl_init, sys_dl_exit, sys_dl_open, + sys_dl_close, sys_dl_sym): Preprocess these away on cygwin to + avoid spurious error messages. + 2000-01-24 Thomas Tanner fix severe bugs reported by Elrond diff --git a/libltdl/ltdl.c b/libltdl/ltdl.c index 1d009a38b..f8186f587 100644 --- a/libltdl/ltdl.c +++ b/libltdl/ltdl.c @@ -210,7 +210,11 @@ strrchr(str, ch) #endif -#if HAVE_LIBDL +/* The Cygwin dlopen implementation prints a spurious error message to + stderr if its call to LoadLibrary() fails for any reason. We can + mitigate this by not using the Cygwin implementation, and falling + back to our own LoadLibrary() wrapper. */ +#if HAVE_LIBDL && !defined(__CYGWIN__) /* dynamic linking with dlopen/dlsym */ -- 2.47.3