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:14:16 +0000 |
commit | f32b30ef4711fe602a11549f77be06a0eef2fc0d (patch) | |
tree | ecc8b158df49afb162ea7ed25cd8af488ff60466 /meta/recipes-support/libproxy/libproxy | |
parent | e579eb7f33462258c8e82a0936d970593614840d (diff) | |
download | openembedded-core-f32b30ef4711fe602a11549f77be06a0eef2fc0d.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
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 @@ +include unistd.h to get prototypes of close() and read() +otherwise g++ complains + +libproxy/url.cpp:439:13: error: 'close' was not declared in this scope +libproxy/url.cpp:398:37: error: 'read' was not declared in this scope + +Signed-off-by: Khem Raj <raj.khem@gmail.com> + +Upstream-Status: Pending + +Index: libproxy-0.4.7/libproxy/url.cpp +=================================================================== +--- libproxy-0.4.7.orig/libproxy/url.cpp 2012-03-01 09:51:11.254156247 -0800 ++++ libproxy-0.4.7/libproxy/url.cpp 2012-03-01 09:56:12.058171256 -0800 +@@ -33,6 +33,7 @@ + #include <cstdlib> // For atoi() + #include <sys/stat.h> // For stat() + #include <algorithm> // For transform() ++#include <unistd.h> // For close(), read() + + #ifdef WIN32 + #include <io.h> |