summaryrefslogtreecommitdiffstats
path: root/meta/recipes-graphics/xorg-lib/pixman/0001-test-utils-Check-for-FE_INVALID-definition-before-us.patch
blob: 782c1db0221d9f26efd9e4c688e82953f3fc168d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
From 0ccd906b904d21536d5ab41c6196760e3e5d72cb Mon Sep 17 00:00:00 2001
From: Khem Raj <raj.khem@gmail.com>
Date: Tue, 17 May 2016 17:30:00 -0700
Subject: [PATCH] test/utils: Check for FE_INVALID definition before use

Some architectures e.g. nios2 do not support all exceptions

Signed-off-by: Khem Raj <raj.khem@gmail.com>
---
Upstream-Status: Submitted

 test/utils.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/test/utils.c b/test/utils.c
index f8e42a5..fe32b1e 100644
--- a/test/utils.c
+++ b/test/utils.c
@@ -978,9 +978,11 @@ enable_invalid_exceptions (void)
 {
 #ifdef HAVE_FENV_H
 #ifdef HAVE_FEENABLEEXCEPT
+#ifdef FE_INVALID
     feenableexcept (FE_INVALID);
 #endif
 #endif
+#endif
 }
 
 void *
-- 
2.8.2