summaryrefslogtreecommitdiff
path: root/extra/libtar/libtar-1.2.20-free.patch
blob: 3a7b028d5d2d59fec849f8632917909dc08d0170 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
stdlib.h is required for free()

--- lib/output.c
+++ lib/output.c
@@ -20,6 +20,7 @@
 #include <sys/param.h>
 
 #ifdef STDC_HEADERS
+# include <stdlib.h>
 # include <string.h>
 #endif
 
--- lib/wrapper.c
+++ lib/wrapper.c
@@ -18,6 +18,7 @@
 #include <errno.h>
 
 #ifdef STDC_HEADERS
+# include <stdlib.h>
 # include <string.h>
 #endif