Blame SOURCES/libtar-1.2.11-missing-protos.patch

1199b1
diff -up libtar-1.2.11/lib/append.c.foo libtar-1.2.11/lib/append.c
1199b1
--- libtar-1.2.11/lib/append.c.foo	2003-01-07 02:40:59.000000000 +0100
1199b1
+++ libtar-1.2.11/lib/append.c	2008-04-03 15:08:07.000000000 +0200
1199b1
@@ -13,6 +13,8 @@
1199b1
 #include <internal.h>
1199b1
 
1199b1
 #include <stdio.h>
1199b1
+#include <stdlib.h>
1199b1
+#include <string.h>
1199b1
 #include <errno.h>
1199b1
 #include <fcntl.h>
1199b1
 #include <sys/param.h>
1199b1
diff -up libtar-1.2.11/configure.foo libtar-1.2.11/configure
1199b1
--- libtar-1.2.11/configure.foo	2008-04-03 15:08:07.000000000 +0200
1199b1
+++ libtar-1.2.11/configure	2008-04-03 15:09:20.000000000 +0200
1199b1
@@ -4943,8 +4943,8 @@ main ()
1199b1
   for (i = 0; i < 256; i++)
1199b1
     if (XOR (islower (i), ISLOWER (i))
1199b1
 	|| toupper (i) != TOUPPER (i))
1199b1
-      exit(2);
1199b1
-  exit (0);
1199b1
+      return 2;
1199b1
+  return 0;
1199b1
 }
1199b1
 _ACEOF
1199b1
 rm -f conftest$ac_exeext
1199b1
@@ -20083,8 +20083,8 @@ main ()
1199b1
   for (i = 0; i < 256; i++)
1199b1
     if (XOR (islower (i), ISLOWER (i))
1199b1
 	|| toupper (i) != TOUPPER (i))
1199b1
-      exit(2);
1199b1
-  exit (0);
1199b1
+      return (2);
1199b1
+  return (0);
1199b1
 }
1199b1
 _ACEOF
1199b1
 rm -f conftest$ac_exeext
1199b1
@@ -22411,6 +22411,7 @@ cat >>conftest.$ac_ext <<_ACEOF
1199b1
 /* end confdefs.h.  */
1199b1
 
1199b1
 #include <stdio.h>
1199b1
+#include <string.h>
1199b1
 
1199b1
 typedef struct {
1199b1
   int length;
1199b1
@@ -22437,10 +22438,10 @@ int main() {
1199b1
     if ((snprintf(test1, tests[i].length, "%s", tests[i].test)
1199b1
          != tests[i].retval) ||
1199b1
         (tests[i].result && strcmp(tests[i].result, test1)))
1199b1
-      exit(1);
1199b1
+      return (1);
1199b1
   }
1199b1
 
1199b1
-  exit(0);
1199b1
+  return (0);
1199b1
 }
1199b1
 
1199b1
 _ACEOF
1199b1
diff -up libtar-1.2.11/lib/output.c~ libtar-1.2.11/lib/output.c
1199b1
--- libtar-1.2.11/lib/output.c~	2008-04-03 15:11:07.000000000 +0200
1199b1
+++ libtar-1.2.11/lib/output.c	2008-04-03 15:11:07.000000000 +0200
1199b1
@@ -13,6 +13,7 @@
1199b1
 #include <internal.h>
1199b1
 
1199b1
 #include <stdio.h>
1199b1
+#include <stdlib.h>
1199b1
 #include <pwd.h>
1199b1
 #include <grp.h>
1199b1
 #include <time.h>
1199b1
diff -up libtar-1.2.11/lib/wrapper.c~ libtar-1.2.11/lib/wrapper.c
1199b1
--- libtar-1.2.11/lib/wrapper.c~	2008-04-03 15:11:28.000000000 +0200
1199b1
+++ libtar-1.2.11/lib/wrapper.c	2008-04-03 15:11:28.000000000 +0200
1199b1
@@ -13,6 +13,7 @@
1199b1
 #include <internal.h>
1199b1
 
1199b1
 #include <stdio.h>
1199b1
+#include <stdlib.h>
1199b1
 #include <sys/param.h>
1199b1
 #include <dirent.h>
1199b1
 #include <errno.h>