diff options
author | Khem Raj <raj.khem@gmail.com> | 2012-03-01 10:08:03 -0800 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2012-03-01 23:16:42 +0000 |
commit | 1abce24c1f4300c319b8a06e2d1002bf5fcef775 (patch) | |
tree | 9bee0ac94baed94f655f50dc83f4f5caedb0c7ce /meta/recipes-support/libproxy/libproxy | |
parent | 7bb36e5da0d28404d7b272135045cdb5cb160472 (diff) | |
download | poky-1abce24c1f4300c319b8a06e2d1002bf5fcef775.tar.gz |
libproxy: Fix build errors due to missing prototypes
g++ really does not like the missing prototypes
here we were missing close() and read() so include
unistd.h to get them
(From OE-Core rev: f32b30ef4711fe602a11549f77be06a0eef2fc0d)
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-support/libproxy/libproxy')
-rw-r--r-- | meta/recipes-support/libproxy/libproxy/g++-namepace.patch | 22 |
1 files changed, 22 insertions, 0 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> | ||