X-Git-Url: http://git.rot13.org/?a=blobdiff_plain;f=Fuse.xs;h=f86995da6cf4e9863eb4c32177898ad6f8c04293;hb=176ffc0689c521e302965597be47d1bd701d9180;hp=01fcafbb3f460fa8ef9e95bc3c88628530cab8d3;hpb=9497c2fcd8e0940552f724f218863318217136f6;p=perl-fuse.git diff --git a/Fuse.xs b/Fuse.xs index 01fcafb..f86995d 100755 --- a/Fuse.xs +++ b/Fuse.xs @@ -3,18 +3,14 @@ #include "perl.h" #include "XSUB.h" -/* - * XXX: Fuse on FreeBSD does not support extended attributes (see - * /usr/local/share/doc/fusefs/kmod/doc.text). Also, 'extattr_set_file' syscall - * declared in 'sys/extattr.h' does not accept any flags. We could either skip - * defining XATTR_CREATE and XATTR_REPLACE constants (as further below, and - * which breaks their usage if Perl module exports them), set them to some - * dummy values, or not allow them to be exported at all on FreeBSD. - */ -#ifndef __FreeBSD__ +#include + +#if defined(__FreeBSD__) || defined(__NetBSD__) +# define XATTR_CREATE 1 +# define XATTR_REPLACE 2 +#else # include #endif -#include /* Determine if threads support should be included */ #ifdef USE_ITHREADS