]> git.ipfire.org Git - thirdparty/libtool.git/commitdiff
libltdl: Undeclared reference to access on Windows
authorKirill Makurin <maiddaisuki@outlook.com>
Thu, 5 Jun 2025 16:22:42 +0000 (16:22 +0000)
committerIleana Dumitrescu <ileanadumitrescu95@gmail.com>
Fri, 6 Jun 2025 14:44:58 +0000 (17:44 +0300)
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
libltdl/ltdl.mk

index 2d01e7e74422ac66eb7ed0659d4d32d8a04a62c1..3617e79c681df8161fd81d46921f2b0a5354b43d 100644 (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
 
 
index 7cf9f386924638a7d32a8549bde6d54911a58ec4..4610977590e14229925440ce4a8191eaed680774 100644 (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)