Skip to content

Commit

Permalink
Fix build on MacOS
Browse files Browse the repository at this point in the history
  • Loading branch information
isra17 committed Jun 10, 2024
1 parent 9e02241 commit 3224d3c
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions fuseparts/_fusemodule.c
Original file line number Diff line number Diff line change
Expand Up @@ -920,7 +920,11 @@ flush_func(const char *path)
}

static int
#if __APPLE__
getxattr_func(const char *path, const char *name, char *value, size_t size, u_int32_t position)
#else
getxattr_func(const char *path, const char *name, char *value, size_t size)
#endif
{
#if PY_VERSION_HEX < 0x02050000
PROLOGUE( PyObject_CallFunction(getxattr_cb, "ssi", path, name, size) )
Expand Down Expand Up @@ -1018,8 +1022,13 @@ listxattr_func(const char *path, char *list, size_t size)
}

static int
#if __APPLE__
setxattr_func(const char *path, const char *name, const char *value,
size_t size, int flags, u_int32_t position)
#else
setxattr_func(const char *path, const char *name, const char *value,
size_t size, int flags)
#endif
{
PROLOGUE(
#ifdef FIX_PATH_DECODING
Expand Down

0 comments on commit 3224d3c

Please sign in to comment.