1
1
Fork 0
mirror of https://github.com/NixOS/nix.git synced 2025-11-20 17:29:36 +01:00

Improve ACL clearing support (fixing FreeBSD build)

The problem was that f880469173 forgot
that the `#include <sys/xattr.h>` was guarded by an `#ifdef __linux__`.

However, the build failure was only on FreeBSD --- turns out other
platforms have this header too!

The fix therefore uses a new configure check so we properly clear ACLs
on more platforms.
This commit is contained in:
John Ericson 2023-11-29 21:03:56 -05:00
parent a8fea5a54f
commit a7115a47ef
3 changed files with 6 additions and 3 deletions

View file

@ -34,7 +34,6 @@
#include <sys/statvfs.h>
#include <sys/mount.h>
#include <sys/ioctl.h>
#include <sys/xattr.h>
#endif
#ifdef __CYGWIN__