Dash:
[t2.git] / package / graphic / jbig2enc / hotfix-gcc4.patch
blob1c5d1c7041339b7a93a8427339d59b4bc95fb7c0
1 # --- T2-COPYRIGHT-NOTE-BEGIN ---
2 # This copyright note is auto-generated by ./scripts/Create-CopyPatch.
3 #
4 # T2 SDE: package/.../jbig2enc/gcc4.patch
5 # Copyright (C) 2008 The T2 SDE Project
6 #
7 # More information can be found in the files COPYING and README.
8 #
9 # This patch file is dual-licensed. It is available under the license the
10 # patched project is licensed under, as long as it is an OpenSource license
11 # as defined at http://www.opensource.org/ (e.g. BSD, X11) or under the terms
12 # of the GNU General Public License as published by the Free Software
13 # Foundation; either version 2 of the License, or (at your option) any later
14 # version.
15 # --- T2-COPYRIGHT-NOTE-END ---
17 --- jbig2enc-0.23/jbig2segments.h.vanilla 2008-10-28 16:45:45.000000000 +0100
18 +++ jbig2enc-0.23/jbig2segments.h 2008-10-28 16:45:51.000000000 +0100
19 @@ -4,6 +4,7 @@
20 #ifndef THIRD_PARTY_JBIG2ENC_JBIG2SEGMENTS_H__
21 #define THIRD_PARTY_JBIG2ENC_JBIG2SEGMENTS_H__
23 +#include <string.h>
24 #include <vector>
25 #include <netinet/in.h>
27 --- jbig2enc-0.23/jbig2enc.cc.vanilla 2008-10-28 16:46:04.000000000 +0100
28 +++ jbig2enc-0.23/jbig2enc.cc 2008-10-28 16:50:24.000000000 +0100
29 @@ -19,6 +19,7 @@
30 #include <vector>
31 #include <algorithm>
33 +#include <stdio.h> // for the leptonlib allheader.h due g++
34 #include <allheaders.h>
35 #include <pix.h>
37 --- jbig2enc-0.27/jbig2sym.cc.vanilla 2008-10-28 16:54:58.000000000 +0100
38 +++ jbig2enc-0.27/jbig2sym.cc 2008-10-28 16:55:02.000000000 +0100
39 @@ -18,6 +18,8 @@
40 #include <map>
41 #include <algorithm>
43 +#include <stdio.h>
45 #include "jbig2arith.h"
47 #ifdef _MSC_VER
48 --- jbig2enc-0.27/jbig2.cc.vanilla 2008-10-28 16:55:15.000000000 +0100
49 +++ jbig2enc-0.27/jbig2.cc 2008-10-28 16:56:22.000000000 +0100
50 @@ -21,6 +21,8 @@
51 #include <stdio.h>
52 #include <stdlib.h>
53 #include <fcntl.h>
54 +#include <unistd.h>
55 +#include <string.h>
57 #include <allheaders.h>
58 #include <pix.h>
59 --- jbig2enc-0.27/jbig2arith.cc.vanilla 2008-10-28 16:53:52.000000000 +0100
60 +++ jbig2enc-0.27/jbig2arith.cc 2008-10-28 16:54:13.000000000 +0100
61 @@ -16,6 +16,8 @@
62 // limitations under the License.
64 #include "jbig2arith.h"
66 +#include <stdlib.h>
67 #include <string.h>
68 #include <stdio.h>