diff options
| -rw-r--r-- | meta/recipes-support/libproxy/libproxy/g++-namepace.patch | 22 | ||||
| -rw-r--r-- | meta/recipes-support/libproxy/libproxy_0.4.7.bb | 6 |
2 files changed, 26 insertions, 2 deletions
diff --git a/meta/recipes-support/libproxy/libproxy/g++-namepace.patch b/meta/recipes-support/libproxy/libproxy/g++-namepace.patch new file mode 100644 index 0000000000..cb90ab704e --- /dev/null +++ b/meta/recipes-support/libproxy/libproxy/g++-namepace.patch | |||
| @@ -0,0 +1,22 @@ | |||
| 1 | include unistd.h to get prototypes of close() and read() | ||
| 2 | otherwise g++ complains | ||
| 3 | |||
| 4 | libproxy/url.cpp:439:13: error: 'close' was not declared in this scope | ||
| 5 | libproxy/url.cpp:398:37: error: 'read' was not declared in this scope | ||
| 6 | |||
| 7 | Signed-off-by: Khem Raj <raj.khem@gmail.com> | ||
| 8 | |||
| 9 | Upstream-Status: Pending | ||
| 10 | |||
| 11 | Index: libproxy-0.4.7/libproxy/url.cpp | ||
| 12 | =================================================================== | ||
| 13 | --- libproxy-0.4.7.orig/libproxy/url.cpp 2012-03-01 09:51:11.254156247 -0800 | ||
| 14 | +++ libproxy-0.4.7/libproxy/url.cpp 2012-03-01 09:56:12.058171256 -0800 | ||
| 15 | @@ -33,6 +33,7 @@ | ||
| 16 | #include <cstdlib> // For atoi() | ||
| 17 | #include <sys/stat.h> // For stat() | ||
| 18 | #include <algorithm> // For transform() | ||
| 19 | +#include <unistd.h> // For close(), read() | ||
| 20 | |||
| 21 | #ifdef WIN32 | ||
| 22 | #include <io.h> | ||
diff --git a/meta/recipes-support/libproxy/libproxy_0.4.7.bb b/meta/recipes-support/libproxy/libproxy_0.4.7.bb index f31b70183c..2cb8ed36be 100644 --- a/meta/recipes-support/libproxy/libproxy_0.4.7.bb +++ b/meta/recipes-support/libproxy/libproxy_0.4.7.bb | |||
| @@ -8,9 +8,11 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=7d7044444a7b1b116e8783edcdb44ff4 \ | |||
| 8 | 8 | ||
| 9 | DEPENDS = "gconf" | 9 | DEPENDS = "gconf" |
| 10 | 10 | ||
| 11 | PR = "r1" | 11 | PR = "r2" |
| 12 | 12 | ||
| 13 | SRC_URI = "http://libproxy.googlecode.com/files/libproxy-${PV}.tar.gz" | 13 | SRC_URI = "http://libproxy.googlecode.com/files/libproxy-${PV}.tar.gz \ |
| 14 | file://g++-namepace.patch \ | ||
| 15 | " | ||
| 14 | 16 | ||
| 15 | SRC_URI[md5sum] = "509e03a488a61cd62bfbaf3ab6a2a7a5" | 17 | SRC_URI[md5sum] = "509e03a488a61cd62bfbaf3ab6a2a7a5" |
| 16 | SRC_URI[sha256sum] = "8fe0a58810139ba3c2e186deccf3e68adcd127aa0e972b0862b30b3dde493797" | 18 | SRC_URI[sha256sum] = "8fe0a58810139ba3c2e186deccf3e68adcd127aa0e972b0862b30b3dde493797" |
