summaryrefslogtreecommitdiffstats
path: root/meta/recipes-devtools/apt/apt-0.7.14/includes-fix.patch
diff options
context:
space:
mode:
Diffstat (limited to 'meta/recipes-devtools/apt/apt-0.7.14/includes-fix.patch')
-rw-r--r--meta/recipes-devtools/apt/apt-0.7.14/includes-fix.patch42
1 files changed, 42 insertions, 0 deletions
diff --git a/meta/recipes-devtools/apt/apt-0.7.14/includes-fix.patch b/meta/recipes-devtools/apt/apt-0.7.14/includes-fix.patch
new file mode 100644
index 0000000000..f4661648ea
--- /dev/null
+++ b/meta/recipes-devtools/apt/apt-0.7.14/includes-fix.patch
@@ -0,0 +1,42 @@
1Add missing includes required when building with modern toolchain, based on
2patch from Debian bugzilla:
3http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=505954
4
5Should no longer be required once upgraded to 0.7.22 or later.
6
7Index: apt-0.7.14/apt-pkg/acquire.cc
8===================================================================
9--- apt-0.7.14.orig/apt-pkg/acquire.cc 2008-05-28 14:22:13.000000000 +0100
10+++ apt-0.7.14/apt-pkg/acquire.cc 2010-07-23 17:30:11.494883936 +0100
11@@ -22,6 +22,7 @@
12
13 #include <apti18n.h>
14
15+#include <cstdio>
16 #include <iostream>
17 #include <sstream>
18
19Index: apt-0.7.14/apt-pkg/contrib/sha256.h
20===================================================================
21--- apt-0.7.14.orig/apt-pkg/contrib/sha256.h 2008-05-28 14:22:14.000000000 +0100
22+++ apt-0.7.14/apt-pkg/contrib/sha256.h 2010-07-23 17:30:11.494883936 +0100
23@@ -14,6 +14,7 @@
24 #ifndef APTPKG_SHA256_H
25 #define APTPKG_SHA256_H
26
27+#include <stdint.h>
28 #include <string>
29 #include <cstring>
30 #include <algorithm>
31Index: apt-0.7.14/apt-pkg/deb/dpkgpm.cc
32===================================================================
33--- apt-0.7.14.orig/apt-pkg/deb/dpkgpm.cc 2008-05-28 14:22:14.000000000 +0100
34+++ apt-0.7.14/apt-pkg/deb/dpkgpm.cc 2010-07-23 17:30:36.960856870 +0100
35@@ -20,6 +20,7 @@
36 #include <stdlib.h>
37 #include <fcntl.h>
38 #include <sys/select.h>
39+#include <sys/stat.h>
40 #include <sys/types.h>
41 #include <sys/wait.h>
42 #include <signal.h>