Skip to content

Commit 3224d3c

Browse files
committed
Fix build on MacOS
1 parent 9e02241 commit 3224d3c

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

fuseparts/_fusemodule.c

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -920,7 +920,11 @@ flush_func(const char *path)
920920
}
921921

922922
static int
923+
#if __APPLE__
924+
getxattr_func(const char *path, const char *name, char *value, size_t size, u_int32_t position)
925+
#else
923926
getxattr_func(const char *path, const char *name, char *value, size_t size)
927+
#endif
924928
{
925929
#if PY_VERSION_HEX < 0x02050000
926930
PROLOGUE( PyObject_CallFunction(getxattr_cb, "ssi", path, name, size) )
@@ -1018,8 +1022,13 @@ listxattr_func(const char *path, char *list, size_t size)
10181022
}
10191023

10201024
static int
1025+
#if __APPLE__
1026+
setxattr_func(const char *path, const char *name, const char *value,
1027+
size_t size, int flags, u_int32_t position)
1028+
#else
10211029
setxattr_func(const char *path, const char *name, const char *value,
10221030
size_t size, int flags)
1031+
#endif
10231032
{
10241033
PROLOGUE(
10251034
#ifdef FIX_PATH_DECODING

0 commit comments

Comments
 (0)