Current-Users archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: Current build break - port amd64 - librumphijack
On 18:10 Tue 12 Apr, Paul Goyette wrote:
> This problem was OK with sources checked out at 2011-04-12 19:20:01
> UTC and started failing with sources from 21:20 UTC.
>
> # compile librumphijack/hijack.pico
> /test-bed/tools/bin/x86_64--netbsd-gcc -O2 -Wall -Wstrict-prototypes
> -Wmissing-prototypes -Wpointer-arith -Wno-sign-compare -Wno-traditional
> -Wa,--fatal-warnings -Wreturn-type -Wswitch -Wshadow -Wcast-qual
> -Wwrite-strings -Wextra -Wno-unused-parameter -Wsign-compare -std=gnu99
> -Werror -D_DIAGNOSTIC -D_REENTRANT --sysroot=/test-bed/dst -c -fPIC
> -DPIC /test-bed/src/lib/librumphijack/hijack.c -o hijack.pico
> cc1: warnings being treated as errors
> /test-bed/src/lib/librumphijack/hijack.c:2135: warning: no previous prototype
> for '_sys_readlink'
...
Index: hijack.c
===================================================================
RCS file: /cvsroot/src/lib/librumphijack/hijack.c,v
retrieving revision 1.87
diff -u -p -r1.87 hijack.c
--- hijack.c 12 Apr 2011 19:49:48 -0000 1.87
+++ hijack.c 13 Apr 2011 04:42:47 -0000
@@ -1980,6 +1980,7 @@ STUB(readlink)(const char * __restrict p
{
return _sys_readlink(path, buf, bufsiz);
}
+#define READLINK _sys_readlink
char *STUB(getcwd)(char *, size_t);
char *_sys_getcwd(char *, size_t);
@@ -1990,6 +1991,7 @@ STUB(getcwd)(char *buf, size_t size)
}
#else
#define STUB(fun) fun
+#define READLINK readlink
#endif
FDCALL(ssize_t, REALREAD, DUALCALL_READ, \
@@ -2132,7 +2134,7 @@ PATHCALL(int, symlink, DUALCALL_SYMLINK,
(const char *, const char *), \
(target, path))
-PATHCALL(ssize_t, _sys_readlink, DUALCALL_READLINK, \
+PATHCALL(ssize_t, READLINK, DUALCALL_READLINK, \
(const char *path, char *buf, size_t bufsiz), \
(const char *, char *, size_t), \
(path, buf, bufsiz))
Home |
Main Index |
Thread Index |
Old Index