python-cryptography: bump to version 1.7.2
[buildroot-gz.git] / package / pixman / 0002-pixman-private-include-float.h-only-in-C-code.patch
blob455cebb26515af3124c5c83e089495da7a5d2df1
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
9 assembler files:
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>
22 ---
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
30 @@ -1,5 +1,3 @@
31 -#include <float.h>
33 #ifndef PIXMAN_PRIVATE_H
34 #define PIXMAN_PRIVATE_H
36 @@ -30,6 +28,7 @@
37 #include <stdio.h>
38 #include <string.h>
39 #include <stddef.h>
40 +#include <float.h>
42 #include "pixman-compiler.h"
44 --
45 2.6.4