summaryrefslogtreecommitdiff
path: root/libc/sysdeps/linux/common/xattr.c
diff options
context:
space:
mode:
Diffstat (limited to 'libc/sysdeps/linux/common/xattr.c')
-rw-r--r--libc/sysdeps/linux/common/xattr.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/libc/sysdeps/linux/common/xattr.c b/libc/sysdeps/linux/common/xattr.c
index 259ccc155..6e4e7fa92 100644
--- a/libc/sysdeps/linux/common/xattr.c
+++ b/libc/sysdeps/linux/common/xattr.c
@@ -23,6 +23,7 @@
#include "syscalls.h"
#include <unistd.h>
+#include <sys/xattr.h>
/* sets */
#ifdef __NR_setxattr
@@ -122,7 +123,7 @@ ssize_t llistxattr(__const char *__path, char *__list, size_t __size)
#endif
#ifdef __NR_flistxattr
-_syscall3(size_t, flistxattr, int, filedes, char *, list, size_t, size);
+_syscall3(ssize_t, flistxattr, int, filedes, char *, list, size_t, size);
#else
ssize_t flistxattr(int __fd, char *__list, size_t __size)
{