From fcedcad61fa676a03ce8b691cbe2bc25973c0f72 Mon Sep 17 00:00:00 2001 From: adam Date: Tue, 30 Nov 2004 16:45:19 +0000 Subject: statvfs fix --- devel/pwlib/patches/patch-ad | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 devel/pwlib/patches/patch-ad (limited to 'devel/pwlib') diff --git a/devel/pwlib/patches/patch-ad b/devel/pwlib/patches/patch-ad new file mode 100644 index 00000000000..3d09e5b9663 --- /dev/null +++ b/devel/pwlib/patches/patch-ad @@ -0,0 +1,33 @@ +$NetBSD: patch-ad,v 1.3 2004/11/30 16:45:19 adam Exp $ + +--- src/ptlib/unix/osutil.cxx.orig 2004-11-30 17:37:08.000000000 +0000 ++++ src/ptlib/unix/osutil.cxx +@@ -245,6 +245,7 @@ + + #include + #include ++#include + + #elif defined(P_HPUX9) + #define P_USE_LANGINFO +@@ -687,7 +688,7 @@ PString PDirectory::GetVolume() const + + #elif defined(P_FREEBSD) || defined(P_OPENBSD) || defined(P_NETBSD) || defined(P_MACOSX) || defined(P_MACOS) + +- struct statfs * mnt; ++ struct statvfs * mnt; + int count = getmntinfo(&mnt, MNT_NOWAIT); + for (int i = 0; i < count; i++) { + if (stat(mnt[i].f_mntonname, &status) != -1 && status.st_dev == my_dev) { +@@ -727,9 +728,9 @@ BOOL PDirectory::GetVolumeSpace(PInt64 & + { + #if defined(P_LINUX) || defined(P_FREEBSD) || defined(P_OPENBSD) || defined(P_NETBSD) || defined(P_MACOSX) || defined(P_MACOS) + +- struct statfs fs; ++ struct statvfs fs; + +- if (statfs(operator+("."), &fs) == -1) ++ if (statvfs(operator+("."), &fs) == -1) + return FALSE; + + clusterSize = fs.f_bsize; -- cgit v1.2.3