summaryrefslogtreecommitdiff
path: root/misc/xtar/files/patch-xtar.c
diff options
context:
space:
mode:
Diffstat (limited to 'misc/xtar/files/patch-xtar.c')
-rw-r--r--misc/xtar/files/patch-xtar.c28
1 files changed, 28 insertions, 0 deletions
diff --git a/misc/xtar/files/patch-xtar.c b/misc/xtar/files/patch-xtar.c
new file mode 100644
index 000000000000..de63c95e3f61
--- /dev/null
+++ b/misc/xtar/files/patch-xtar.c
@@ -0,0 +1,28 @@
+--- xtar.c.orig 1995-07-17 19:44:19.000000000 +0800
++++ xtar.c 2013-08-15 17:00:58.000000000 +0800
+@@ -33,6 +33,7 @@
+ #include <sys/stat.h>
+ #include <string.h>
+ #include <unistd.h>
++#include <stdlib.h>
+
+ #include <Xm/Xm.h>
+ #include <Xm/Form.h>
+@@ -408,7 +409,7 @@
+ int argc = 1;
+ char **argv;
+ #else
+-void main(int argc, char *argv[])
++int main(int argc, char *argv[])
+ {
+ char *mappings;
+ #endif
+@@ -1164,7 +1165,7 @@
+ static int xtar_attributes(TAR_FILE *tf, char *filename)
+ {
+ int retval = 0;
+- struct utimbuf utimbuf;
++ struct utimbuf {char utimbuf;} utimbuf;
+
+ /* If the file type is not a directory then try and set the access
+ permissions. We exclude directories because if write permission