coreutils: Make it build on OSX 10.0.8

Take patch from: https://lists.gnu.org/archive/html/bug-coreutils/2013-01/msg00119.html
This commit is contained in:
Danie Roux 2013-09-02 18:47:20 +02:00 committed by Vladimír Čunát
parent 35cd18503e
commit c183c7b3ec
2 changed files with 13 additions and 0 deletions

View File

@ -14,6 +14,8 @@ stdenv.mkDerivation rec {
sha256 = "1rx9x3fp848w4nny7irdkcpkan9fcx24d99v5dkwgkyq7wc76f5d";
};
patches = [ ./stpncpy.patch ];
nativeBuildInputs = [ perl ];
buildInputs = [ gmp ]
++ stdenv.lib.optional aclSupport acl

View File

@ -0,0 +1,11 @@
--- coreutils-8.19/lib/stpncpy.c.orig 2013-09-02 18:20:00.000000000 +0200
+++ coreutils-8.19/lib/stpncpy.c 2013-09-02 18:20:31.000000000 +0200
@@ -31,7 +31,7 @@
/* Copy no more than N bytes of SRC to DST, returning a pointer past the
last non-NUL byte written into DST. */
char *
-__stpncpy (char *dest, const char *src, size_t n)
+(__stpncpy) (char *dest, const char *src, size_t n)
{
char c;
char *s = dest;