openbsd-ports/devel/boost/patches/patch-libs_filesystem_src_operations_cpp
jasper edfae0e0ad - Remove OpenBSD long double workaround for Boost.Functional/Hash.
- Have Boost.Filesystem use statvfs().

from brad
ok aja@
2011-11-06 20:05:47 +00:00

20 lines
742 B
Plaintext

$OpenBSD: patch-libs_filesystem_src_operations_cpp,v 1.1 2011/11/06 20:05:47 jasper Exp $
--- libs/filesystem/src/operations.cpp.orig Thu Nov 3 06:53:43 2011
+++ libs/filesystem/src/operations.cpp Thu Nov 3 06:54:19 2011
@@ -58,14 +58,11 @@ using boost::system::system_category;
# else // BOOST_POSIX_API
# include <sys/types.h>
-# if !defined(__APPLE__) && !defined(__OpenBSD__)
+# ifndef __APPLE__
# include <sys/statvfs.h>
# define BOOST_STATVFS statvfs
# define BOOST_STATVFS_F_FRSIZE vfs.f_frsize
# else
-#ifdef __OpenBSD__
-# include <sys/param.h>
-#endif
# include <sys/mount.h>
# define BOOST_STATVFS statfs
# define BOOST_STATVFS_F_FRSIZE static_cast<boost::uintmax_t>( vfs.f_bsize )