1
0
Fork 0
mirror of https://github.com/borgbackup/borg.git synced 2024-12-24 08:45:13 +00:00

Merge pull request #1083 from enkore/fix/ppc

Fix bug on powerpc linux
This commit is contained in:
enkore 2016-05-22 19:31:36 +02:00
commit ec90f9ae57

View file

@ -8,13 +8,13 @@ from .platform_base import SyncFile as BaseSyncFile
from .platform_posix import swidth from .platform_posix import swidth
from libc cimport errno from libc cimport errno
from libc.stdint cimport int64_t
API_VERSION = 3 API_VERSION = 3
cdef extern from "sys/types.h": cdef extern from "sys/types.h":
int ACL_TYPE_ACCESS int ACL_TYPE_ACCESS
int ACL_TYPE_DEFAULT int ACL_TYPE_DEFAULT
ctypedef off64_t
cdef extern from "sys/acl.h": cdef extern from "sys/acl.h":
ctypedef struct _acl_t: ctypedef struct _acl_t:
@ -31,7 +31,7 @@ cdef extern from "acl/libacl.h":
int acl_extended_file(const char *path) int acl_extended_file(const char *path)
cdef extern from "fcntl.h": 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_WRITE
unsigned int SYNC_FILE_RANGE_WAIT_BEFORE unsigned int SYNC_FILE_RANGE_WAIT_BEFORE
unsigned int SYNC_FILE_RANGE_WAIT_AFTER unsigned int SYNC_FILE_RANGE_WAIT_AFTER