1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/cpio/cpio.patch Tue Aug 28 18:53:10 2012 +0200 1.3 @@ -0,0 +1,48 @@ 1.4 +Index: lib/rtapelib.c 1.5 +--- lib/rtapelib.c.orig 2009-03-19 12:47:19 +0100 1.6 ++++ lib/rtapelib.c 2009-06-20 17:36:22 +0200 1.7 +@@ -628,7 +628,7 @@ 1.8 + { 1.9 + char command_buffer[COMMAND_BUFFER_SIZE]; 1.10 + char operand_buffer[UINTMAX_STRSIZE_BOUND]; 1.11 +- uintmax_t u = offset < 0 ? - (uintmax_t) offset : (uintmax_t) offset; 1.12 ++ unsigned long u = offset < 0 ? - (unsigned long) offset : (unsigned long) offset; 1.13 + char *p = operand_buffer + sizeof operand_buffer; 1.14 + 1.15 + *--p = 0; 1.16 +@@ -670,9 +670,9 @@ 1.17 + { 1.18 + char command_buffer[COMMAND_BUFFER_SIZE]; 1.19 + char operand_buffer[UINTMAX_STRSIZE_BOUND]; 1.20 +- uintmax_t u = (((struct mtop *) argument)->mt_count < 0 1.21 +- ? - (uintmax_t) ((struct mtop *) argument)->mt_count 1.22 +- : (uintmax_t) ((struct mtop *) argument)->mt_count); 1.23 ++ unsigned long u = (((struct mtop *) argument)->mt_count < 0 1.24 ++ ? - (unsigned long) ((struct mtop *) argument)->mt_count 1.25 ++ : (unsigned long) ((struct mtop *) argument)->mt_count); 1.26 + char *p = operand_buffer + sizeof operand_buffer; 1.27 + 1.28 + *--p = 0; 1.29 +Index: lib/system.h 1.30 +--- lib/system.h.orig 2009-06-20 10:29:22 +0200 1.31 ++++ lib/system.h 2009-06-20 17:36:22 +0200 1.32 +@@ -425,7 +425,7 @@ 1.33 + 1.34 + #include <intprops.h> 1.35 + 1.36 +-#define UINTMAX_STRSIZE_BOUND INT_BUFSIZE_BOUND (uintmax_t) 1.37 ++#define UINTMAX_STRSIZE_BOUND INT_BUFSIZE_BOUND (unsigned long) 1.38 + 1.39 + /* Prototypes for external functions. */ 1.40 + 1.41 +Index: src/userspec.c 1.42 +--- src/userspec.c.orig 2009-02-14 19:15:50 +0100 1.43 ++++ src/userspec.c 2009-06-20 17:41:54 +0200 1.44 +@@ -20,7 +20,6 @@ 1.45 + /* Written by David MacKenzie <djm@gnu.ai.mit.edu>. */ 1.46 + 1.47 + #include <system.h> 1.48 +-#include <alloca.h> 1.49 + #include <stdio.h> 1.50 + #include <ctype.h> 1.51 + #include <sys/types.h>