From 35d1946216467bbe18e7b736bc86aa56c9a2924b Mon Sep 17 00:00:00 2001 From: Kelvin W Sherlock Date: Fri, 18 Nov 2016 16:44:25 -0500 Subject: [PATCH] fix linux --- dot_clean.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/dot_clean.cpp b/dot_clean.cpp index 8f0b048..87ac07c 100644 --- a/dot_clean.cpp +++ b/dot_clean.cpp @@ -26,6 +26,9 @@ #include "mapped_file.h" #include "defer.h" +#ifdef __linux__ +#include +#endif std::vector unlink_list; @@ -162,7 +165,7 @@ void one_file(const std::string &data, const std::string &rsrc) noexcept try { if (ok < 0) throw_errno("com.apple.ResourceFork"); #endif - #ifdef ___linux____ + #ifdef __linux__ int ok = fsetxattr(fd, "user.apple.ResourceFork", mf.data() + e.entryOffset, e.entryLength, 0); if (ok < 0) throw_errno("user.apple.ResourceFork"); #endif