From: Kirill Makurin Date: Thu, 5 Jun 2025 16:22:42 +0000 (+0000) Subject: libltdl: Undeclared reference to access on Windows X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=a26932a36ecb2c3013be0c1e7fdbf2eb9062e845;p=thirdparty%2Flibtool.git libltdl: Undeclared reference to access on Windows On native Windows (MSVC/mingw), access is declared in io.h, which is not included. * Reported: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=78701 * libltdl/ltdl.h: Include io.h on Windows platforms. * libltdl/ltdl.mk: Update serial. --- diff --git a/libltdl/ltdl.h b/libltdl/ltdl.h index 2d01e7e74..3617e79c6 100644 --- a/libltdl/ltdl.h +++ b/libltdl/ltdl.h @@ -34,6 +34,10 @@ License along with GNU Libltdl. If not, see . #include #include +#if defined _WIN32 && !defined __CYGWIN__ +#include +#endif + LT_BEGIN_C_DECLS diff --git a/libltdl/ltdl.mk b/libltdl/ltdl.mk index 7cf9f3869..461097759 100644 --- a/libltdl/ltdl.mk +++ b/libltdl/ltdl.mk @@ -35,7 +35,7 @@ AM_CPPFLAGS += -DLT_CONFIG_H='<$(LT_CONFIG_H)>' \ -I$(srcdir)/libltdl -Ilibltdl/libltdl \ -I$(srcdir)/libltdl/libltdl AM_LDFLAGS += -no-undefined -LTDL_VERSION_INFO = -version-info 10:3:3 +LTDL_VERSION_INFO = -version-info 10:4:3 noinst_LTLIBRARIES += $(LT_DLLOADERS)