diff --git a/lib/isc/include/isc/mutexatomic.h b/lib/isc/include/isc/mutexatomic.h index d88e5d0fca..c111081ee9 100644 --- a/lib/isc/include/isc/mutexatomic.h +++ b/lib/isc/include/isc/mutexatomic.h @@ -98,6 +98,8 @@ typedef struct atomic_bool_s { bool v; } atomic_bool; +#define ATOMIC_VAR_INIT(arg) \ + { .m = PTHREAD_MUTEX_INITIALIZER, .v = arg } #define atomic_init(obj, desired) \ { \