pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/multimedia/vlc fix build breakage on NetBSD (use fstat...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/c77d92084e06
branches:  trunk
changeset: 398432:c77d92084e06
user:      tnn <tnn%pkgsrc.org@localhost>
date:      Sun Aug 30 16:17:13 2009 +0000

description:
fix build breakage on NetBSD (use fstatvfs instead of fstatfs)

diffstat:

 multimedia/vlc/distinfo         |   3 ++-
 multimedia/vlc/patches/patch-aa |  28 ++++++++++++++++++++++++++++
 2 files changed, 30 insertions(+), 1 deletions(-)

diffs (45 lines):

diff -r e282120681cf -r c77d92084e06 multimedia/vlc/distinfo
--- a/multimedia/vlc/distinfo   Sun Aug 30 16:07:20 2009 +0000
+++ b/multimedia/vlc/distinfo   Sun Aug 30 16:17:13 2009 +0000
@@ -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 -r e282120681cf -r c77d92084e06 multimedia/vlc/patches/patch-aa
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/multimedia/vlc/patches/patch-aa   Sun Aug 30 16:17:13 2009 +0000
@@ -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;
+ 



Home | Main Index | Thread Index | Old Index