From 7864fdb78ca4030f20f15f9038266402b2a2573f Mon Sep 17 00:00:00 2001 From: naddy Date: Tue, 5 Feb 2008 19:17:15 +0000 Subject: [PATCH] fix build if statvfs() is available; from brad@ --- net/ktorrent/Makefile | 3 +- .../patch-libktorrent_util_fileops_cpp | 33 +++++++++---------- 2 files changed, 18 insertions(+), 18 deletions(-) diff --git a/net/ktorrent/Makefile b/net/ktorrent/Makefile index 67600c49dee..a859395ffb0 100644 --- a/net/ktorrent/Makefile +++ b/net/ktorrent/Makefile @@ -1,4 +1,4 @@ -# $OpenBSD: Makefile,v 1.7 2008/01/30 12:18:59 sthen Exp $ +# $OpenBSD: Makefile,v 1.8 2008/02/05 19:17:15 naddy Exp $ SHARED_ONLY= Yes @@ -6,6 +6,7 @@ COMMENT= BitTorrent client for KDE VERSION= 2.2.5 DISTNAME= ktorrent-${VERSION} +PKGNAME= ${DISTNAME}p0 CATEGORIES= net x11 x11/kde EXTRACT_SUFX= .tar.bz2 diff --git a/net/ktorrent/patches/patch-libktorrent_util_fileops_cpp b/net/ktorrent/patches/patch-libktorrent_util_fileops_cpp index c4ef74341ff..c0b0265989d 100644 --- a/net/ktorrent/patches/patch-libktorrent_util_fileops_cpp +++ b/net/ktorrent/patches/patch-libktorrent_util_fileops_cpp @@ -1,24 +1,23 @@ -$OpenBSD: patch-libktorrent_util_fileops_cpp,v 1.2 2008/01/30 12:18:59 sthen Exp $ ---- libktorrent/util/fileops.cpp.orig Sun Jan 27 12:06:02 2008 -+++ libktorrent/util/fileops.cpp Tue Jan 29 20:36:58 2008 -@@ -29,6 +29,8 @@ - #include - #include - #include -+#include -+#include - #include - #include - #include -@@ -62,7 +64,6 @@ typedef int64_t __s64; +$OpenBSD: patch-libktorrent_util_fileops_cpp,v 1.3 2008/02/05 19:17:15 naddy Exp $ +--- libktorrent/util/fileops.cpp.orig Sun Jan 27 07:06:02 2008 ++++ libktorrent/util/fileops.cpp Sat Feb 2 13:27:40 2008 +@@ -61,10 +61,13 @@ typedef int64_t __s64; + #define O_LARGEFILE 0 #endif - --#include - +- ++#if HAVE_STATVFS + #include ++#else ++#include ++#include ++#endif +- namespace bt -@@ -445,7 +446,19 @@ namespace bt + { + void MakeDir(const QString & dir,bool nothrow) +@@ -445,7 +448,19 @@ namespace bt return false; } #else