summaryrefslogtreecommitdiff
path: root/archivers/gtar-base/patches/patch-gnu_readlinkat.c
blob: 7f4e82cb1cec2fc40c4337d325d97e6ca99e865e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
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