summaryrefslogtreecommitdiff
path: root/sysutils
diff options
context:
space:
mode:
Diffstat (limited to 'sysutils')
-rw-r--r--sysutils/attr/patches/patch-aa29
-rw-r--r--sysutils/attr/patches/patch-ab18
2 files changed, 47 insertions, 0 deletions
diff --git a/sysutils/attr/patches/patch-aa b/sysutils/attr/patches/patch-aa
new file mode 100644
index 00000000000..a18d4ef501d
--- /dev/null
+++ b/sysutils/attr/patches/patch-aa
@@ -0,0 +1,29 @@
+$NetBSD: patch-aa,v 1.1 2014/07/22 08:23:31 manu Exp $
+
+Portability fixes:
+- <features.h> is Linux specific
+- Define __THROW for systems non glibc based systems
+
+--- include/xattr.h.orig 2014-06-27 11:39:56.000000000 +0200
++++ include/xattr.h 2014-06-27 11:43:07.000000000 +0200
+@@ -19,9 +19,20 @@
+ */
+ #ifndef __XATTR_H__
+ #define __XATTR_H__
+
++#if defined(linux)
+ #include <features.h>
++#endif
++
++/* Portability non glibc c++ build systems */
++#ifndef __THROW
++# if defined __cplusplus
++# define __THROW throw ()
++# else
++# define __THROW
++# endif
++#endif
+
+ #include <errno.h>
+ #ifndef ENOATTR
+ # define ENOATTR ENODATA /* No such attribute */
diff --git a/sysutils/attr/patches/patch-ab b/sysutils/attr/patches/patch-ab
new file mode 100644
index 00000000000..23eb729f804
--- /dev/null
+++ b/sysutils/attr/patches/patch-ab
@@ -0,0 +1,18 @@
+$NetBSD: patch-ab,v 1.1 2014/07/22 08:23:31 manu Exp $
+
+Portability fix: <alloca.h> is Linux specific
+
+--- libattr/attr_copy_action.c.orig 2014-06-27 11:43:54.000000000 +0200
++++ libattr/attr_copy_action.c 2014-06-27 11:45:05.000000000 +0200
+@@ -14,9 +14,11 @@
+ You should have received a copy of the GNU Lesser General Public License
+ along with this manual. If not, see <http://www.gnu.org/licenses/>.
+ */
+
++#if defined(linux)
+ #include <alloca.h>
++#endif
+ #include <stdio.h>
+ #include <stdlib.h>
+ #include <errno.h>
+ #include <string.h>