Commit 30d725b8 authored by Tim Rühsen's avatar Tim Rühsen

* src/wget_xattr.h: Fix getxattr args on OSX/FreeBSD

parent ca504511
Pipeline #38638983 failed with stages
in 54 minutes and 8 seconds
......@@ -37,8 +37,8 @@
# include <sys/xattr.h>
# define fsetxattr(file, name, buffer, size, flags) \
fsetxattr((file), (name), (buffer), (size), 0, (flags))
# define fgetxattr(file, name, buffer, size, flags) \
fgetxattr((file), (name), (buffer), (size), 0, (flags))
# define fgetxattr(file, name, buffer, size) \
fgetxattr((file), (name), (buffer), (size), 0, 0)
# define USE_XATTR
#elif defined __FreeBSD_version && (__FreeBSD_version > 500000)
/* FreeBSD */
......@@ -46,7 +46,7 @@
# include <sys/extattr.h>
# define fsetxattr(file, name, buffer, size, flags) \
extattr_set_fd((file), EXTATTR_NAMESPACE_USER, (name), (buffer), (size))
# define fgetxattr(file, name, buffer, size, flags) \
# define fgetxattr(file, name, buffer, size) \
extattr_set_fd((file), EXTATTR_NAMESPACE_USER, (name), (buffer), (size))
# define USE_XATTR
#endif
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment