mirror of
https://github.com/Stichting-MINIX-Research-Foundation/pkgsrc-ng.git
synced 2025-08-04 02:08:49 -04:00
15 lines
459 B
C
15 lines
459 B
C
$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
|