summaryrefslogtreecommitdiff
path: root/archivers/gtar-base/patches/patch-gnu_readlinkat.c
diff options
context:
space:
mode:
Diffstat (limited to 'archivers/gtar-base/patches/patch-gnu_readlinkat.c')
-rw-r--r--archivers/gtar-base/patches/patch-gnu_readlinkat.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/archivers/gtar-base/patches/patch-gnu_readlinkat.c b/archivers/gtar-base/patches/patch-gnu_readlinkat.c
new file mode 100644
index 00000000000..7f4e82cb1ce
--- /dev/null
+++ b/archivers/gtar-base/patches/patch-gnu_readlinkat.c
@@ -0,0 +1,14 @@
+$NetBSD: patch-gnu_readlinkat.c,v 1.1 2014/03/18 09:03:26 obache Exp $
+
+* workaround for NetBSD-5.x, readlink is defined as a macro.
+
+--- gnu/readlinkat.c.orig 2013-06-29 05:54:25.000000000 +0000
++++ gnu/readlinkat.c
+@@ -41,6 +41,7 @@
+ #define AT_FUNC_POST_FILE_PARAM_DECLS , char *buf, size_t len
+ #define AT_FUNC_POST_FILE_ARGS , buf, len
+ #define AT_FUNC_RESULT ssize_t
++#undef readlink
+ #include "at-func.c"
+ #undef AT_FUNC_NAME
+ #undef AT_FUNC_F1