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.
This commit is contained in:
Kirill Makurin 2025-06-05 16:22:42 +00:00 committed by Ileana Dumitrescu
parent 7f5871de3b
commit 08ebc17358
No known key found for this signature in database
GPG Key ID: 6570EA01146F7354
2 changed files with 5 additions and 1 deletions

View File

@ -34,6 +34,10 @@ License along with GNU Libltdl. If not, see <https://www.gnu.org/licenses/>.
#include <libltdl/lt_error.h>
#include <libltdl/lt_dlloader.h>
#if defined _WIN32 && !defined __CYGWIN__
#include <io.h>
#endif
LT_BEGIN_C_DECLS

View File

@ -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)