From 074a984111d9941486d85d81c59e20548f70970f Mon Sep 17 00:00:00 2001 From: Ivan Shapovalov Date: Tue, 10 Jul 2018 13:08:59 +0300 Subject: [PATCH] xattr: use sys/xattr.h as per setxattr(2), attr/xattr.h is absent on my system --- src/borg/platform/linux.pyx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/borg/platform/linux.pyx b/src/borg/platform/linux.pyx index 39c9ca310..ec93c44aa 100644 --- a/src/borg/platform/linux.pyx +++ b/src/borg/platform/linux.pyx @@ -15,7 +15,7 @@ from libc.stdint cimport int64_t API_VERSION = '1.2_02' -cdef extern from "attr/xattr.h": +cdef extern from "sys/xattr.h": ssize_t c_listxattr "listxattr" (const char *path, char *list, size_t size) ssize_t c_llistxattr "llistxattr" (const char *path, char *list, size_t size) ssize_t c_flistxattr "flistxattr" (int filedes, char *list, size_t size)