Import of pkgsrc-2015Q3

This commit is contained in:
2015-10-03 03:37:01 -07:00
committed by Lionel Sambuc
parent f641581404
commit 9d819b6d54
7578 changed files with 228314 additions and 80018 deletions

View File

@@ -0,0 +1,21 @@
$NetBSD: patch-src_vfs_vfs.cpp,v 1.2 2015/09/08 13:21:46 wiz Exp $
Use BSD headers on NetBSD, and use statvfs (statfs was removed).
https://github.com/corporateshark/WCMCommander/pull/509
--- src/vfs/vfs.cpp.orig 2015-04-24 21:50:22.000000000 +0000
+++ src/vfs/vfs.cpp
@@ -1113,9 +1113,12 @@ FSWin32Net::~FSWin32Net()
// for statfs()
#ifdef __linux__
# include <sys/statfs.h>
-#elif defined(__FreeBSD__) || defined(__OpenBSD__)
+#elif defined(__FreeBSD__) || defined(__OpenBSD__) || defined(__NetBSD__)
# include <sys/param.h>
# include <sys/mount.h>
+# if defined(__NetBSD__)
+# define statfs statvfs
+# endif
#endif
#ifdef __linux__