Skip to content

Commit c509b0f

Browse files
committed
conditional compilation for macfuse
1 parent 3b34d50 commit c509b0f

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

fuseparts/_fusemodule.c

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -923,8 +923,13 @@ flush_func(const char *path)
923923
EPILOGUE
924924
}
925925

926+
#ifdef __APPLE__
927+
static int
928+
getxattr_func(const char *path, const char *name, char *value, size_t size, uint32_t position)
929+
#else
926930
static int
927931
getxattr_func(const char *path, const char *name, char *value, size_t size)
932+
#endif
928933
{
929934
#if PY_VERSION_HEX < 0x02050000
930935
PROLOGUE( PyObject_CallFunction(getxattr_cb, "ssi", path, name, size) )
@@ -1020,10 +1025,15 @@ listxattr_func(const char *path, char *list, size_t size)
10201025

10211026
EPILOGUE
10221027
}
1023-
1028+
#ifdef __APPLE__
1029+
static int
1030+
setxattr_func(const char *path, const char *name,
1031+
const char *value, size_t size, int flags, uint32_t position)
1032+
#else
10241033
static int
10251034
setxattr_func(const char *path, const char *name, const char *value,
10261035
size_t size, int flags)
1036+
#endif
10271037
{
10281038
PROLOGUE(
10291039
#ifdef FIX_PATH_DECODING

0 commit comments

Comments
 (0)