summaryrefslogtreecommitdiff
path: root/multimedia/vlc
diff options
context:
space:
mode:
authortnn <tnn@pkgsrc.org>2009-08-30 16:17:13 +0000
committertnn <tnn@pkgsrc.org>2009-08-30 16:17:13 +0000
commit97cd085caf63b76425ab230a9f627ab92e4b5b46 (patch)
treed43cfaa9b715bd6989cc110b9900308a4f411bbf /multimedia/vlc
parenta69f3ca9727f90f8f7b117143e880fe443ecaea2 (diff)
downloadpkgsrc-97cd085caf63b76425ab230a9f627ab92e4b5b46.tar.gz
fix build breakage on NetBSD (use fstatvfs instead of fstatfs)
Diffstat (limited to 'multimedia/vlc')
-rw-r--r--multimedia/vlc/distinfo3
-rw-r--r--multimedia/vlc/patches/patch-aa28
2 files changed, 30 insertions, 1 deletions
diff --git a/multimedia/vlc/distinfo b/multimedia/vlc/distinfo
index de554c48637..ba3e5b38b59 100644
--- a/multimedia/vlc/distinfo
+++ b/multimedia/vlc/distinfo
@@ -1,7 +1,8 @@
-$NetBSD: distinfo,v 1.30 2009/08/29 13:51:56 hasso Exp $
+$NetBSD: distinfo,v 1.31 2009/08/30 16:17:13 tnn Exp $
SHA1 (vlc-1.0.1.tar.bz2) = 4bd670f538651633c1115c8f4efc94211ff882ec
RMD160 (vlc-1.0.1.tar.bz2) = 9604d3fd33888a058472ebda711ac17f78f8de3f
Size (vlc-1.0.1.tar.bz2) = 19794042 bytes
+SHA1 (patch-aa) = 89f247d455341843abfa2e2294556e64518261ff
SHA1 (patch-configure) = 88a32710eea4987975839bf982d7a6958b977a5c
SHA1 (patch-v4l2) = 1f91206f8e2f78514056386977a6c2230a710211
diff --git a/multimedia/vlc/patches/patch-aa b/multimedia/vlc/patches/patch-aa
new file mode 100644
index 00000000000..1f51b4ac33f
--- /dev/null
+++ b/multimedia/vlc/patches/patch-aa
@@ -0,0 +1,28 @@
+$NetBSD: patch-aa,v 1.9 2009/08/30 16:17:13 tnn Exp $
+
+--- modules/access/file.c.orig 2009-07-28 00:24:17.000000000 +0200
++++ modules/access/file.c
+@@ -51,6 +51,9 @@
+ # include <sys/vfs.h>
+ # include <linux/magic.h>
+ # define HAVE_FSTATFS 1
++#elif defined(__NetBSD__)
++# include <sys/statvfs.h>
++# define HAVE_FSTATVFS 1
+ #elif defined (HAVE_SYS_MOUNT_H)
+ # include <sys/mount.h>
+ # define HAVE_FSTATFS 1
+@@ -126,6 +129,13 @@ struct access_sys_t
+
+ static bool IsRemote (int fd)
+ {
++#ifdef HAVE_FSTATVFS
++ struct statvfs s;
++ if (fstatvfs(fd, &s))
++ return false;
++ return !(s.f_flag & MNT_LOCAL);
++#endif
++
+ #ifdef HAVE_FSTATFS
+ struct statfs stf;
+