summaryrefslogtreecommitdiff
path: root/misc/xtar/files/patch-ab
blob: de63c95e3f61fe92622fe944764b854321d91a14 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
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