From 2341a713bab11acf26dc82ce6535db4e93098f34 Mon Sep 17 00:00:00 2001 From: Jean-Paul Calderone Date: Thu, 14 Sep 2023 14:59:15 -0400 Subject: [PATCH] check to see if we have easy access to atomics --- zfec/fec.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/zfec/fec.c b/zfec/fec.c index c94815d..fae4772 100644 --- a/zfec/fec.c +++ b/zfec/fec.c @@ -8,6 +8,7 @@ #include #include #include +#include /* * Primitive polynomials - see Lin & Costello, Appendix A, @@ -395,6 +396,9 @@ _invert_vdm (gf* src, unsigned k) { static int fec_initialized = 0; +/* Just checking to see if this compiles everywhere */ +static atomic_flag compiler_test = ATOMIC_FLAG_INIT; + void fec_init (void) { if (fec_initialized == 0) {