mirror of
https://github.com/trapexit/mergerfs.git
synced 2026-10-25 18:40:18 -04:00
tools/preload: include correct extended attribute headers on FreeBSD (#1590)
Some checks are pending
mkdocs / deploy (push) Waiting to run
Some checks are pending
mkdocs / deploy (push) Waiting to run
Add conditional includes for extended attribute support. FreeBSD uses <sys/extattr.h> instead of <sys/xattr.h>, which prevents the preload module from building. This update selects the proper header based on the target platform and fixes the build failure on FreeBSD.
This commit is contained in:
parent
4c5473d569
commit
caf7915003
1 changed files with 4 additions and 0 deletions
|
|
@ -33,7 +33,11 @@
|
|||
#include <sys/ioctl.h>
|
||||
#include <sys/stat.h>
|
||||
#include <sys/types.h>
|
||||
#ifdef __FreeBSD__
|
||||
#include <sys/extattr.h>
|
||||
#else
|
||||
#include <sys/xattr.h>
|
||||
#endif
|
||||
#include <unistd.h>
|
||||
|
||||
typedef char IOCTL_BUF[4096];
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue