+in upstream now:
+http://git.savannah.gnu.org/cgit/wget.git/commit/?id=a933bdd31eee9c956a3b5cc142f004ef1fa94cb3
+
From 2c968b81d9d9c4025379242b5f560aab441e1430 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Mantas=20Mikul=C4=97nas?= <grawity@gmail.com>
Date: Sat, 7 Dec 2013 20:45:00 +0200
#include <unistd.h>
#include <errno.h>
#include <assert.h>
-+#include <attr/xattr.h>
++#include <sys/xattr.h>
#include "utils.h"
#include "url.h"
2.3.3
+commit 8a15b84d4be480514c650db1a34cbb2122d6590d
+Author: Mantas Mikulėnas <grawity@gmail.com>
+Date: Tue Jun 30 14:56:59 2015 +0300
+
+ Ignore 'Operation not permitted' when writing to /dev/null
+
+diff --git a/src/url.c b/src/url.c
+index 30cb86f..cff8683 100644
+--- a/src/url.c
++++ b/src/url.c
+@@ -2242,7 +2242,7 @@ set_xa (const struct url *origin, int fd)
+ res = fsetxattr(fd, XA_ORIGIN, url, strlen(url), 0);
+ if (res != 0)
+ {
+- if (errno == ENOTSUP)
++ if (errno == ENOTSUP || errno == EPERM)
+ res = 0;
+ else
+ logprintf (LOG_NOTQUIET, "fsetxattr: %s\n", strerror (errno));
+