From caf7915003dc6cf1e1e711e19d855dee44f0b867 Mon Sep 17 00:00:00 2001 From: Emanuel Haupt Date: Tue, 25 Nov 2025 19:09:41 +0100 Subject: [PATCH] tools/preload: include correct extended attribute headers on FreeBSD (#1590) Add conditional includes for extended attribute support. FreeBSD uses instead of , 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. --- tools/preload.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tools/preload.c b/tools/preload.c index 999c2fff..800b673b 100644 --- a/tools/preload.c +++ b/tools/preload.c @@ -33,7 +33,11 @@ #include #include #include +#ifdef __FreeBSD__ +#include +#else #include +#endif #include typedef char IOCTL_BUF[4096];