Implement setting extended attributes in Darwin.

This commit is contained in:
2021-03-30 02:06:37 +01:00
parent 095ba13a3c
commit 095d8f827c
5 changed files with 335 additions and 1 deletions

View File

@@ -26,11 +26,15 @@ Copyright (C) 2011-2021 Natalia Portillo
#if defined(__linux__) || defined(__LINUX__) || defined(__gnu_linux)
#include "../linux/linux.h"
#elif defined(__APPLE__) && defined(__MACH__)
#include "../darwin/darwin.h"
#endif
void ExtendedAttributes(const char* path)
{
#if defined(__linux__) || defined(__LINUX__) || defined(__gnu_linux)
LinuxExtendedAttributes(path);
#elif defined(__APPLE__) && defined(__MACH__)
DarwinExtendedAttributes(path);
#endif
}