diff options
author | Lucas Holt <luke@foolishgames.com> | 2021-10-04 17:15:07 -0400 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2021-10-05 08:35:24 +0200 |
commit | 18480f71be0685ee6becaa85c762c6b7956a2402 (patch) | |
tree | 3f20a0801f4b3dd6bcbd12d45653e18aaa0f54ad /src | |
parent | 5ce380d65a183f6d9358c3c4df71a880fcf5c736 (diff) | |
download | curl-18480f71be0685ee6becaa85c762c6b7956a2402.tar.gz |
misc: fix a few issues on MidnightBSD
Closes #7812
Diffstat (limited to 'src')
-rw-r--r-- | src/tool_xattr.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/tool_xattr.c b/src/tool_xattr.c index 08e92fa50..76ee52482 100644 --- a/src/tool_xattr.c +++ b/src/tool_xattr.c @@ -24,7 +24,8 @@ #ifdef HAVE_FSETXATTR # include <sys/xattr.h> /* header from libc, not from libattr */ # define USE_XATTR -#elif defined(__FreeBSD_version) && (__FreeBSD_version > 500000) +#elif (defined(__FreeBSD_version) && (__FreeBSD_version > 500000)) || \ + defined(__MidnightBSD_version) # include <sys/types.h> # include <sys/extattr.h> # define USE_XATTR @@ -111,7 +112,7 @@ int fwrite_xattr(CURL *curl, int fd) err = fsetxattr(fd, mappings[i].attr, value, strlen(value), 0, 0); #elif defined(HAVE_FSETXATTR_5) err = fsetxattr(fd, mappings[i].attr, value, strlen(value), 0); -#elif defined(__FreeBSD_version) +#elif defined(__FreeBSD_version) || defined(__MidnightBSD_version) { ssize_t rc = extattr_set_fd(fd, EXTATTR_NAMESPACE_USER, mappings[i].attr, value, strlen(value)); |