]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
Use stdint.h only when stdatomic.h is in use (stdint.h isn't available everywhere)
authorMukund Sivaraman <muks@isc.org>
Fri, 22 Sep 2017 09:43:44 +0000 (15:13 +0530)
committerMukund Sivaraman <muks@isc.org>
Fri, 22 Sep 2017 09:44:04 +0000 (15:14 +0530)
lib/isc/include/isc/rwlock.h
lib/isc/rwlock.c

index 49de075053806ff2ef2ea33d3a133830c099a151..3cc29046ee68cbb3b4183f9cca464b8a57c0ef14 100644 (file)
@@ -19,6 +19,7 @@
 #include <isc/types.h>
 
 #if defined(ISC_PLATFORM_HAVESTDATOMIC)
+#include <stdint.h>
 #include <stdatomic.h>
 #endif
 
index ef1a7616f810e282757132d4d73006fd29b20b01..030f3757437604e45ea75cdaf6c5f865d7ad8377 100644 (file)
@@ -13,7 +13,6 @@
 #include <config.h>
 
 #include <stddef.h>
-#include <stdint.h>
 
 #include <isc/atomic.h>
 #include <isc/magic.h>