| 1 | #include <sys/types.h> |
| 2 | #include <sys/errno.h> |
| 3 | #include <sys/acl.h> |
| 4 | #include <fcntl.h> |
| 5 | #if __APPLE__ |
| 6 | // MacOS makes us translate between GUID and UID/GID. |
| 7 | # include <membership.h> |
| 8 | #elif __linux__ |
| 9 | // Linux supplies non-standard ACL extensions in a different header. |
| 10 | # include <acl/libacl.h> |
| 11 | #endif |
| 12 | #include <grp.h> |
| 13 | #include <pwd.h> |
| 14 | #include <unistd.h> |