boost: fix build failure
authorFlorian Fainelli <florian@openwrt.org>
Tue, 11 Dec 2012 17:22:30 +0000 (17:22 +0000)
committerFlorian Fainelli <florian@openwrt.org>
Tue, 11 Dec 2012 17:22:30 +0000 (17:22 +0000)
Such build failure was reported several times:

gcc.compile.c++
bin.v2/libs/context/build/gcc-i386/release/link-static/threading-multi/fcontext.o
libs/context/src/fcontext.cpp: In function 'void*
boost::ctx::detail::align_stack(void*)':
libs/context/src/fcontext.cpp:25:21: error: 'uintptr_t' was not declared
in this scope
libs/context/src/fcontext.cpp:25:32: error: expected ')' before 'base'
libs/context/src/fcontext.cpp:26:66: error: expected ')' before ';'
token
libs/context/src/fcontext.cpp:26:66: error: expected ')' before ';'
token

Signed-off-by: Florian Fainelli <florian@openwrt.org>
SVN-Revision: 34635

libs/boost/patches/200-cstdint_missing_include.patch [new file with mode: 0644]

diff --git a/libs/boost/patches/200-cstdint_missing_include.patch b/libs/boost/patches/200-cstdint_missing_include.patch
new file mode 100644 (file)
index 0000000..4cb778d
--- /dev/null
@@ -0,0 +1,12 @@
+--- a/libs/context/src/fcontext.cpp.new        2012-12-11 17:59:59.349131458 +0100
++++ b/libs/context/src/fcontext.cpp    2012-12-11 18:00:06.925131652 +0100
+@@ -9,6 +9,9 @@
+ #include <boost/context/fcontext.hpp>
+ #include <cstddef>
++extern "C" {
++#include <stdint.h>
++}
+ #ifdef BOOST_HAS_ABI_HEADERS
+ #  include BOOST_ABI_PREFIX