summaryrefslogtreecommitdiffstats
path: root/meta-skeleton
diff options
context:
space:
mode:
authorKai Kang <kai.kang@windriver.com>2013-08-13 17:57:49 +0800
committerRichard Purdie <richard.purdie@linuxfoundation.org>2013-08-13 23:06:04 +0100
commit18b955559a93fd5fb575c05a2ed57484d334478d (patch)
tree25e9eb4fc791f015e3cb9b32ce649ee8d1a7fff4 /meta-skeleton
parent70a16efaa662a95646e82c88d3295986e1db416f (diff)
downloadpoky-18b955559a93fd5fb575c05a2ed57484d334478d.tar.gz
dpkg: fix include header caused compile error
Build dpkg-native on Fedora 19, it fails with: /usr/include/c++/4.8.1/cstdlib: In function ‘long long int std::abs(long long int)’: /usr/include/c++/4.8.1/cstdlib:174:20: error: declaration of C function ‘long long int std::abs(long long int)’ conflicts with abs(long long __x) { return __builtin_llabs (__x); } ^ /usr/include/c++/4.8.1/cstdlib:166:3: error: previous declaration ‘long int std::abs(long int)’ here abs(long __i) { return __builtin_labs(__i); } ^ That because header cstdlib is included in a 'extern "C"' block that gcc 4.8 doesn't support. Fix it by move the header file out of the 'extern "C"' block. (From OE-Core rev: 7de61ecc3efc43c625dde9a66f5c05e980a82e34) Signed-off-by: Kai Kang <kai.kang@windriver.com> Signed-off-by: Saul Wold <sgw@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta-skeleton')
0 files changed, 0 insertions, 0 deletions