summaryrefslogtreecommitdiff
path: root/libattr/attr_copy_file.c
diff options
context:
space:
mode:
authorAndreas Gruenbacher <andreas.gruenbacher@gmail.com>2015-04-15 01:33:58 +0200
committerAndreas Gruenbacher <andreas.gruenbacher@gmail.com>2015-04-15 01:45:04 +0200
commit7921157890d07858d092f4003ca4c6bae9fd2c38 (patch)
treec0c152fb535e42d1d072021aa371b816e0d77df2 /libattr/attr_copy_file.c
parent8d1263bca95722d66a6f8e83450f49d0956ea534 (diff)
downloadattr-7921157890d07858d092f4003ca4c6bae9fd2c38.tar.gz
Remove <attr/xattr.h> and the syscall wrappers
The xattr syscalls are provided by glibc since ages, so there is no need to use the indirect system call "syscall" anymore. This removes the need for the <attr/xattr.h> header; use <sys/xattr.h> instead.
Diffstat (limited to 'libattr/attr_copy_file.c')
-rw-r--r--libattr/attr_copy_file.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/libattr/attr_copy_file.c b/libattr/attr_copy_file.c
index 9132433..6cd8f81 100644
--- a/libattr/attr_copy_file.c
+++ b/libattr/attr_copy_file.c
@@ -22,6 +22,7 @@
#endif
#include <sys/types.h>
+# include <sys/xattr.h>
#include <stdlib.h>
#include <string.h>
#include <errno.h>
@@ -30,10 +31,6 @@
# include <alloca.h>
#endif
-#if defined(HAVE_ATTR_XATTR_H)
-# include <attr/xattr.h>
-#endif
-
#if defined(HAVE_ATTR_LIBATTR_H)
# include "attr/libattr.h"
#endif