From f27f0e1ea23253880f18a0ad699394dcb1a05353 Mon Sep 17 00:00:00 2001 From: Marian Beermann Date: Sun, 22 May 2016 19:15:21 +0200 Subject: [PATCH] Fix bug on powerpc linux --- borg/platform_linux.pyx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/borg/platform_linux.pyx b/borg/platform_linux.pyx index e60768aaa..4306a5fcd 100644 --- a/borg/platform_linux.pyx +++ b/borg/platform_linux.pyx @@ -8,13 +8,13 @@ from .platform_base import SyncFile as BaseSyncFile from .platform_posix import swidth from libc cimport errno +from libc.stdint cimport int64_t API_VERSION = 3 cdef extern from "sys/types.h": int ACL_TYPE_ACCESS int ACL_TYPE_DEFAULT - ctypedef off64_t cdef extern from "sys/acl.h": ctypedef struct _acl_t: @@ -31,7 +31,7 @@ cdef extern from "acl/libacl.h": int acl_extended_file(const char *path) cdef extern from "fcntl.h": - int sync_file_range(int fd, off64_t offset, off64_t nbytes, unsigned int flags) + int sync_file_range(int fd, int64_t offset, int64_t nbytes, unsigned int flags) unsigned int SYNC_FILE_RANGE_WRITE unsigned int SYNC_FILE_RANGE_WAIT_BEFORE unsigned int SYNC_FILE_RANGE_WAIT_AFTER