1 From 2a5b33fe5cb921993573392afac19185e224b49a Mon Sep 17 00:00:00 2001
2 From: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
3 Date: Sun, 17 Jan 2016 14:14:28 +0100
4 Subject: [PATCH] pixman-private: include <float.h> only in C code
6 <float.h> is included unconditionally by pixman-private.h, which in
7 turn gets included by assembler files. Unfortunately, with certain C
8 libraries (like the musl C library), <float.h> cannot be included in
11 CCLD libpixman-arm-simd.la
12 /home/test/buildroot/output/host/usr/arm-buildroot-linux-musleabihf/sysroot/usr/include/float.h: Assembler messages:
13 /home/test/buildroot/output/host/usr/arm-buildroot-linux-musleabihf/sysroot/usr/include/float.h:8: Error: bad instruction `int __flt_rounds(void)'
14 /home/test/buildroot/output/host/usr/arm-buildroot-linux-musleabihf/sysroot/usr/include/float.h: Assembler messages:
15 /home/test/buildroot/output/host/usr/arm-buildroot-linux-musleabihf/sysroot/usr/include/float.h:8: Error: bad instruction `int __flt_rounds(void)'
17 It turns out however that <float.h> is not needed by assembly files,
18 so we move its inclusion within the #ifndef __ASSEMBLER__ condition,
19 which solves the problem.
21 Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
23 pixman/pixman-private.h | 3 +--
24 1 file changed, 1 insertion(+), 2 deletions(-)
26 diff --git a/pixman/pixman-private.h b/pixman/pixman-private.h
27 index 73108a0..73a5414 100644
28 --- a/pixman/pixman-private.h
29 +++ b/pixman/pixman-private.h
33 #ifndef PIXMAN_PRIVATE_H
34 #define PIXMAN_PRIVATE_H
42 #include "pixman-compiler.h"