Boost logo

Boost :

From: Alexander Nasonov (alnsn_at_[hidden])
Date: 2006-09-13 02:33:37


Index: libs/filesystem/src/operations.cpp
===================================================================
RCS file: /cvsroot/boost/boost/libs/filesystem/src/operations.cpp,v
retrieving revision 1.25
diff -u -r1.25 operations.cpp
--- libs/filesystem/src/operations.cpp 9 Jun 2006 21:25:47 -0000 1.25
+++ libs/filesystem/src/operations.cpp 13 Sep 2006 06:18:12 -0000
@@ -59,11 +59,14 @@
 
 # else // BOOST_POSIX_API
 # include <sys/types.h>
-# ifndef __APPLE__
+# if !defined(__APPLE__) && !defined(__OpenBSD__)
 # 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 )


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk