From 08ebc17358238e76a078acac38ee0928a94993fd Mon Sep 17 00:00:00 2001 From: Kirill Makurin Date: Thu, 5 Jun 2025 16:22:42 +0000 Subject: [PATCH] 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. --- libltdl/ltdl.h | 4 ++++ libltdl/ltdl.mk | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) 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) -- 2.47.3