X-Git-Url: http://git.rot13.org/?a=blobdiff_plain;f=Fuse.xs;h=fb3686fa752775e40bf1f8e2e7e4b70400f6b4eb;hb=e58e8d93ea76d9eadfcb1e7bce7d5e8bc483f71c;hp=f05d50cf0ce2335d315d3d14ee2d2908afc7c869;hpb=7e431f90e9570d355a4fc953d7deefcebc22170e;p=perl-fuse.git diff --git a/Fuse.xs b/Fuse.xs index f05d50c..fb3686f 100755 --- a/Fuse.xs +++ b/Fuse.xs @@ -733,7 +733,11 @@ int _PLfuse_fsync (const char *file, int datasync, struct fuse_file_info *fi) { return rv; } +#if __FreeBSD__ >= 10 +int _PLfuse_setxattr (const char *file, const char *name, const char *buf, size_t buflen, int flags, uint32_t position) { +#else int _PLfuse_setxattr (const char *file, const char *name, const char *buf, size_t buflen, int flags) { +#endif int rv; FUSE_CONTEXT_PRE; DEBUGf("setxattr begin\n"); @@ -756,7 +760,11 @@ int _PLfuse_setxattr (const char *file, const char *name, const char *buf, size_ return rv; } +#if __FreeBSD__ >= 10 +int _PLfuse_getxattr (const char *file, const char *name, char *buf, size_t buflen, uint32_t position) { +#else int _PLfuse_getxattr (const char *file, const char *name, char *buf, size_t buflen) { +#endif int rv; FUSE_CONTEXT_PRE; DEBUGf("getxattr begin\n"); @@ -1582,6 +1590,7 @@ fuse_version() OUTPUT: RETVAL +#ifndef __FreeBSD__ SV * XATTR_CREATE() CODE: @@ -1596,6 +1605,8 @@ XATTR_REPLACE() OUTPUT: RETVAL +#endif + void perl_fuse_main(...) PREINIT: