Skip to content

Commit

Permalink
Merge pull request #84 from sidsabh/macfuse_fix
Browse files Browse the repository at this point in the history
conditional compilation for macfuse
  • Loading branch information
sdelafond authored Nov 28, 2024
2 parents 3b34d50 + c509b0f commit 3150ccf
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion fuseparts/_fusemodule.c
Original file line number Diff line number Diff line change
Expand Up @@ -923,8 +923,13 @@ flush_func(const char *path)
EPILOGUE
}

#ifdef __APPLE__
static int
getxattr_func(const char *path, const char *name, char *value, size_t size, uint32_t position)
#else
static int
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 @@ -1020,10 +1025,15 @@ listxattr_func(const char *path, char *list, size_t size)

EPILOGUE
}

#ifdef __APPLE__
static int
setxattr_func(const char *path, const char *name,
const char *value, size_t size, int flags, uint32_t position)
#else
static int
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 3150ccf

Please sign in to comment.