mirror of
https://github.com/ksherlock/profuse.git
synced 2024-05-28 22:41:39 +00:00
linux support.
git-svn-id: https://profuse.googlecode.com/svn/branches/v2@241 aa027e90-d47c-11dd-86d7-074df07e0730
This commit is contained in:
parent
e7b4c96984
commit
f530a9d748
|
@ -12,7 +12,7 @@
|
||||||
#include <sys/disk.h>
|
#include <sys/disk.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef __LINUX__
|
#ifdef __linux__
|
||||||
#include <sys/mount.h>
|
#include <sys/mount.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
@ -71,7 +71,7 @@ void RawDevice::devSize(int fd)
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
||||||
#ifdef __LINUX__
|
#ifdef __linux__
|
||||||
|
|
||||||
void RawDevice::devSize(int fd)
|
void RawDevice::devSize(int fd)
|
||||||
{
|
{
|
||||||
|
@ -262,4 +262,5 @@ void RawDevice::sync()
|
||||||
|
|
||||||
if (::fsync(_file.fd()) < 0)
|
if (::fsync(_file.fd()) < 0)
|
||||||
throw POSIXException(__METHOD__ ": fsync error.", errno);
|
throw POSIXException(__METHOD__ ": fsync error.", errno);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user