haskellPackages.xattr: fix build with attr-2.4.48 (see ##53716)

This commit is contained in:
Pascal Wittmann
2019-03-09 17:37:46 +01:00
parent bbfd2be8ed
commit 57afc591b3
2 changed files with 19 additions and 0 deletions
@@ -0,0 +1,16 @@
diff --git a/System/Xattr.hsc b/System/Xattr.hsc
index adaf9cb..9b49996 100644
--- a/System/Xattr.hsc
+++ b/System/Xattr.hsc
@@ -45,11 +45,7 @@ module System.Xattr
where
#include <sys/types.h>
-#ifdef __APPLE__
#include <sys/xattr.h>
-#else
-#include <attr/xattr.h>
-#endif
import Data.Functor ((<$>))
import Foreign.C