]> code.ossystems Code Review - meta-freescale.git/commit
linux-imx (3.0.35): perf tools: Fix build against newer glibc
authorDaiane Angolini <daiane.angolini@freescale.com>
Tue, 23 Oct 2012 13:11:47 +0000 (08:11 -0500)
committerOtavio Salvador <otavio@ossystems.com.br>
Tue, 30 Oct 2012 18:53:04 +0000 (16:53 -0200)
commitfcd0314767441d807d57a0a82f7cd3ff70336d26
tree3dc7aa14b30c04e3ea43967aabad8090189e1701
parent2cc418fc6330f081368fdc0d381f0923291641f4
linux-imx (3.0.35): perf tools: Fix build against newer glibc

Upstream glibc commit 295e904 added a definition for __attribute_const__
to cdefs.h.  This causes the following error when building perf:

util/include/linux/compiler.h:8:0: error: "__attribute_const__"
redefined [-Werror] /usr/include/sys/cdefs.h:226:0: note: this is the
location of the previous definition

Wrap __attribute_const__ in #ifndef as we do for __always_inline.

Change-Id: I0d12b349826162117b7708f79b6cac14621bcb30
Signed-off-by: Daiane Angolini <daiane.angolini@freescale.com>
meta-fsl-arm/recipes-kernel/linux/linux-imx/perf_tools_Fix_build_against_newer_glibc.patch [new file with mode: 0644]
meta-fsl-arm/recipes-kernel/linux/linux-imx_3.0.35.bb