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.
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.