aboutsummaryrefslogtreecommitdiffstats
path: root/meta-oe/recipes-navigation/gpsd/gpsd-3.14/0001-Check-for-__STDC_NO_ATOMICS__-before-using-stdatomic.patch
blob: 82ac5aa6e7c2d6909d40a16f9526a6f4ba77c950 (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
From c30716be9e615513fe66993fd3cdc818c3d70410 Mon Sep 17 00:00:00 2001
From: "Gary E. Miller" <gem@rellim.com>
Date: Sun, 15 Mar 2015 11:51:45 -0700
Subject: [PATCH 1/3] Check for __STDC_NO_ATOMICS__ before using stdatomic.h

---
 SConstruct | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/SConstruct b/SConstruct
index adf473d..566c14a 100644
--- a/SConstruct
+++ b/SConstruct
@@ -633,7 +633,7 @@ else:
         announce("You do not have kernel CANbus available.")
         env["nmea2000"] = False
 
-    if config.CheckHeader("stdatomic.h"):
+    if not config.CheckCompilerDefines("__STDC_NO_ATOMICS__") and config.CheckHeader("stdatomic.h"):
         confdefs.append("#define HAVE_STDATOMIC_H 1\n")
     else:
 	confdefs.append("/* #undef HAVE_STDATOMIC_H */\n")
-- 
2.1.0