From 5fa9902de93efde2b39748030afa67b1d0b1dfa5 Mon Sep 17 00:00:00 2001 From: Richard Fuchs Date: Wed, 11 Feb 2015 14:17:31 -0500 Subject: [PATCH] atomic vars should be volatile --- daemon/aux.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/daemon/aux.h b/daemon/aux.h index 099cffc92..80bf36c4b 100644 --- a/daemon/aux.h +++ b/daemon/aux.h @@ -515,7 +515,7 @@ int in6_addr_eq(const void *a, const void *b); #if GLIB_SIZEOF_VOID_P >= 8 typedef struct { - void *p; + volatile void *p; } atomic64; INLINE u_int64_t atomic64_get(const atomic64 *u) {