mirror of
https://github.com/ksherlock/dot_clean.git
synced 2025-04-07 18:38:43 +00:00
fix linux
This commit is contained in:
parent
0b6ee991e1
commit
35d1946216
@ -26,6 +26,9 @@
|
||||
#include "mapped_file.h"
|
||||
#include "defer.h"
|
||||
|
||||
#ifdef __linux__
|
||||
#include <attr/xattr.h>
|
||||
#endif
|
||||
|
||||
std::vector<std::string> 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
|
||||
|
Loading…
x
Reference in New Issue
Block a user