fix building on alpine w/ musl

This commit is contained in:
Antonio SJ Musumeci 2018-11-28 17:08:40 -05:00
parent 3c1f19e85a
commit 6ae68465cf
2 changed files with 3 additions and 1 deletions

View File

@ -22,6 +22,7 @@
#include "errno.hpp" #include "errno.hpp"
#include <fcntl.h>
#include <stdio.h> #include <stdio.h>
#include <sys/syscall.h> #include <sys/syscall.h>
#include <sys/types.h> #include <sys/types.h>

View File

@ -25,7 +25,8 @@
#endif #endif
#ifdef USE_XATTR #ifdef USE_XATTR
# ifdef __GLIBC__ # ifdef __linux__
# include <sys/types.h>
# include <sys/xattr.h> # include <sys/xattr.h>
# else # else
# undef USE_XATTR # undef USE_XATTR