]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
Add missing <isc/atomic.h> include to dns/badcache.c
authorOndřej Surý <ondrej@isc.org>
Tue, 14 Feb 2023 12:40:45 +0000 (13:40 +0100)
committerOndřej Surý <ondrej@isc.org>
Wed, 15 Feb 2023 08:30:04 +0000 (09:30 +0100)
The dns_badcache was pulling the <isc/atomic.h> header only indirectly
via <isc/rwlock.h>, add the direct include as the <isc/rwlock.h> no
longer pulls the header when pthread_rwlock is used.

lib/dns/badcache.c

index 3ef1dfaeb6e7d6e60ceb96ba24ce55c37ca3d83b..64363ea7939cabf17e00e25eb539becfe4598fef 100644 (file)
@@ -16,6 +16,7 @@
 #include <inttypes.h>
 #include <stdbool.h>
 
+#include <isc/atomic.h>
 #include <isc/buffer.h>
 #include <isc/hash.h>
 #include <isc/log.h>