summaryrefslogtreecommitdiff
blob: f7f3bf50911bb56845d4ed8c067c62b9963ae6a2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
--- libtar-1.2.11.orig/libtar/libtar.c
+++ libtar-1.2.11/libtar/libtar.c
@@ -19,6 +19,7 @@
 #include <sys/param.h>
 
 #ifdef STDC_HEADERS
+# include <stdlib.h>
 # include <string.h>
 #endif
 
@@ -91,6 +92,10 @@
 		return -1;
 	}
 
+	/* This is a bad thing to do on big-endian lp64 systems, where the
+	   size and placement of integers is different than pointers.
+	   However, to fix the problem 4 wrapper functions would be needed and
+	   an extra bit of data associating GZF with the wrapper functions.  */
 	return (int)gzf;
 }