The latest version of MinGW needs a test for __sync_val_compare_and_swap
to fix a missing symbol linker error.

Reported-by: Igor Mitsyanko <i.mitsya...@gmail.com>
Signed-off-by: Stefan Weil <s...@weilnetz.de>
---
 configure |    1 +
 1 file changed, 1 insertion(+)

diff --git a/configure b/configure
index 9439f1c..3a75f66 100755
--- a/configure
+++ b/configure
@@ -1341,6 +1341,7 @@ static int sfaa(int *ptr)
 int main(void)
 {
   int val = 42;
+  val = __sync_val_compare_and_swap(&val, 0, 1);
   sfaa(&val);
   return val;
 }
-- 
1.7.10.4


Reply via email to