From 2f6103b7832c8dbe638e4e2ad922a9a007369fcf Mon Sep 17 00:00:00 2001 From: Thomas Schmitt Date: Tue, 15 Dec 2015 10:59:23 +0100 Subject: [PATCH] Silenced a warning about unused variable if no local extended file attributes are enabled. --- libisofs/aaip_0_2.c | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/libisofs/aaip_0_2.c b/libisofs/aaip_0_2.c index 1fc84e5..a9ec8c9 100644 --- a/libisofs/aaip_0_2.c +++ b/libisofs/aaip_0_2.c @@ -2192,6 +2192,22 @@ ex:; #include "aaip-os-freebsd.c" +#else +#ifdef __FreeBSD_kernel__ + +#ifdef NIX +#ifdef Libisofs_with_aaip_xattR +/* ts B51213: xattr system library calls are only stubs */ +#include "aaip-os-linux.c" +#else +/* ts B51213: extattr system library calls are not even present */ +#include "aaip-os-freebsd.c" +#endif /* ! Libisofs_with_aaip_xattR */ +#else /* NIX */ +/* ts B51213: so we still end up at the dummy */ +#include "aaip-os-dummy.c" +#endif /* ! NIX */ + #else #ifdef __NetBSD__ @@ -2215,5 +2231,6 @@ ex:; #endif /* ! __linux */ #endif /* ! __NetBSD__ */ +#endif /* ! __FreeBSD_kernel__ */ #endif /* ! __FreeBSD__ */