To better clarify which version this packages. VideoLAN is a project of French students from the Ecole Centrale Paris and developers from all over the world. Its main goals is MPEG streaming on a network, but it also features a standalone multimedia player. The VideoLAN Server can stream video read from a hard disk, a DVD player, a satellite card or an MPEG 2 compression card, and unicast or multicast it on a network. The VideoLAN Client can read the stream from the network and display it. It can also be used to display video read locally on the computer : DVDs, VCDs, MPEG and DivX files and from a satellite card. It is multi-plaform : Linux, Windows, Mac OS X, BeOS, BSD, Solaris, QNX, iPaq... The VideoLAN Client and Server now have a full IPv6 support. This version is the last version with support for OSSv3, which is the OSS version implemented in NetBSD before NetBSD 7.
24 lines
853 B
C
24 lines
853 B
C
$NetBSD: patch-modules_misc_gnutls.c,v 1.1 2015/10/25 10:52:24 wiz Exp $
|
|
|
|
Mainly due to lack of bits for new fcntl flags, O_DIRECTORY isn't currently
|
|
supported by DragonFly's open. This patch checks which flags are supported
|
|
before passing them to vlc_open.
|
|
|
|
--- modules/misc/gnutls.c.orig 2012-01-27 18:24:46.000000000 +0000
|
|
+++ modules/misc/gnutls.c
|
|
@@ -469,7 +469,14 @@ static void gnutls_Addx509Directory (vlc
|
|
const char *path, bool priv)
|
|
{
|
|
msg_Dbg (obj, "browsing x509 credentials in %s...", path);
|
|
- int fd = vlc_open (path, O_RDONLY|O_DIRECTORY);
|
|
+ int flags = 0;
|
|
+#ifdef O_RDONLY
|
|
+ flags |= O_RDONLY;
|
|
+#endif
|
|
+#ifdef O_DIRECTORY
|
|
+ flags |= O_DIRECTORY;
|
|
+#endif
|
|
+ int fd = vlc_open (path, flags);
|
|
if (fd == -1)
|
|
{
|
|
msg_Warn (obj, "cannot access x509 in %s: %m", path);
|