[vlc-commits] [Git][videolan/vlc][3.0.x] contrib: librist: fix build with recent mingw-w64

Steve Lhomme (@robUx4) gitlab at videolan.org
Sun Sep 13 14:22:51 UTC 2026



Steve Lhomme pushed to branch 3.0.x at VideoLAN / VLC


Commits:
40a90635 by Steve Lhomme at 2026-09-13T12:52:29+00:00
contrib: librist: fix build with recent mingw-w64

When building with llvm-mingw64 22, mingw-w64 v14 targetting mscvrt it complains
inet_pton/inet_ntop are not defined. These API's won't be available when running
on Windows XP. The plugin DLL just won't load and it will skipped.
When run on Vista+ it will behave correctly.

- - - - -


1 changed file:

- contrib/src/librist/rules.mak


Changes:

=====================================
contrib/src/librist/rules.mak
=====================================
@@ -36,6 +36,13 @@ DEPS_librist += gnutls $(DEPS_gnutls)
 LIBRIST_CONF += -Duse_nettle=true -Duse_mbedtls=false
 endif
 
+ifdef HAVE_WIN32
+ifndef HAVE_WINSTORE
+# librist doesn't support XP but we can compile the module to run on Vista+
+LIBRIST_CONF += -Dc_args="$(CFLAGS) -D_WIN32_WINNT=0x0600"
+endif
+endif
+
 $(TARBALLS)/librist-$(LIBRIST_VERSION).tar.gz:
 	$(call download_pkg,$(LIBRIST_URL),librist)
 



View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/40a906352af2cfe9de5546d2ec4abaf4f8200e33

-- 
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/40a906352af2cfe9de5546d2ec4abaf4f8200e33
You're receiving this email because of your account on code.videolan.org. Manage all notifications: https://code.videolan.org/-/profile/notifications | Help: https://code.videolan.org/help




More information about the vlc-commits mailing list