#include <windows.h>
#include <aclapi.h>
#else
+#define _FILE_OFFSET_BITS 64
#include <sys/stat.h>
#include <grp.h>
#include <pwd.h>
{
#ifdef WIN32
HANDLE handle;
- handle = CreateFile(path.str().c_str(), 0, FILE_SHARE_READ, 0, OPEN_EXISTING, 0, 0);
+ handle = CreateFile(path.str().c_str(), 0, FILE_SHARE_READ, 0, OPEN_EXISTING, FILE_FLAG_BACKUP_SEMANTICS, 0);
if(handle==INVALID_HANDLE_VALUE)
throw system_error("CreateFile");