summaryrefslogtreecommitdiff
blob: 682bcc8c29d31adc53354271667d0452989df25e (plain)
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
29
30
31
32
33
34
35
36
37
38
39
40
diff -ur pngtools.orig/inflateraster.c pngtools/inflateraster.c
--- pngtools.orig/inflateraster.c	2005-04-08 04:23:34.000000000 +0300
+++ pngtools/inflateraster.c	2008-04-23 20:38:05.000000000 +0300
@@ -1,5 +1,6 @@
 #include <stdlib.h>
 #include <stdio.h>
+#include <math.h>
 
 // Inflate a raster to a given pixel sample size
 char *inflateraster(char *input, unsigned long width, unsigned long height, 
diff -ur pngtools.orig/pngchunkdesc.c pngtools/pngchunkdesc.c
--- pngtools.orig/pngchunkdesc.c	2005-04-08 04:23:34.000000000 +0300
+++ pngtools/pngchunkdesc.c	2008-04-23 20:44:38.000000000 +0300
@@ -20,6 +20,7 @@
 ******************************************************************************/
 
 #include <stdio.h>
+#include <string.h>
 
 char *meanings[4][2] = {
   {"Critical", "Ancillary"},
diff -ur pngtools.orig/pngchunks.c pngtools/pngchunks.c
--- pngtools.orig/pngchunks.c	2005-04-08 04:23:35.000000000 +0300
+++ pngtools/pngchunks.c	2008-04-23 20:38:29.000000000 +0300
@@ -1,6 +1,7 @@
 // List the chunks which appear in a given PNG image
 
 #include <stdio.h>
+#include <stdlib.h>
 #include <unistd.h>
 #include <sys/mman.h>
 #include <sys/types.h>
diff -ur pngtools.orig/pngcp.c pngtools/pngcp.c
--- pngtools.orig/pngcp.c	2005-04-08 04:23:35.000000000 +0300
+++ pngtools/pngcp.c	2008-04-23 20:38:13.000000000 +0300
@@ -1,3 +1,4 @@
+#include <stdlib.h>
 #include <unistd.h>
 #include <stdio.h>
 #include <math.h>