From 6ae68465cfaa6727f2fbedaebf5edfaf11eba77b Mon Sep 17 00:00:00 2001 From: Antonio SJ Musumeci Date: Wed, 28 Nov 2018 17:08:40 -0500 Subject: [PATCH] fix building on alpine w/ musl --- src/fs_copy_file_range_linux.icpp | 1 + src/xattr.hpp | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/fs_copy_file_range_linux.icpp b/src/fs_copy_file_range_linux.icpp index 4718649d..d89bc794 100644 --- a/src/fs_copy_file_range_linux.icpp +++ b/src/fs_copy_file_range_linux.icpp @@ -22,6 +22,7 @@ #include "errno.hpp" +#include #include #include #include diff --git a/src/xattr.hpp b/src/xattr.hpp index f4052975..de760a0a 100644 --- a/src/xattr.hpp +++ b/src/xattr.hpp @@ -25,7 +25,8 @@ #endif #ifdef USE_XATTR -# ifdef __GLIBC__ +# ifdef __linux__ +# include # include # else # undef USE_XATTR