]> git.ipfire.org Git - thirdparty/coreutils.git/commit
build: avoid link failure when strerror is replaced
authorJim Meyering <meyering@redhat.com>
Fri, 5 Oct 2012 20:35:27 +0000 (22:35 +0200)
committerJim Meyering <meyering@redhat.com>
Fri, 5 Oct 2012 20:35:27 +0000 (22:35 +0200)
commitf947735d3c4036703e03bf6970784430db1355f7
tree43258e92444ed0992846dba06b7bf860b835afa0
parent06b7ed8051d07677572e074d3d45007f1282ed56
build: avoid link failure when strerror is replaced

When building the new make-prime-list program on a system for which
strerror is defined to rpl_strerror, we'd get a link failure.
The problem is that we're including <config.h> for some definitions,
but do not want the rpl_ ones, since this particular program must
not be linked against gnulib (aka libcoreutils.a).  This did not
arise on Fedora 17 or 18, but did on Debian wheezy/sid.
* src/make-prime-list.c (strerror): #undef.
Build failure introduced by commit v8.19-152-gcf67e4c.
src/make-prime-list.c