diff --git a/lib/isc/include/isc/rwlock.h b/lib/isc/include/isc/rwlock.h index 16cbe536d8..b636fbc37c 100644 --- a/lib/isc/include/isc/rwlock.h +++ b/lib/isc/include/isc/rwlock.h @@ -14,7 +14,6 @@ #pragma once #include -#include /*! \file isc/rwlock.h */ @@ -28,6 +27,7 @@ typedef enum { } isc_rwlocktype_t; #if USE_PTHREAD_RWLOCK +#include #include /* @@ -38,6 +38,8 @@ typedef enum { #if ISC_TRACK_PTHREADS_OBJECTS +#include + typedef pthread_rwlock_t *isc_rwlock_t; typedef pthread_rwlock_t isc__rwlock_t; diff --git a/lib/isc/include/isc/util.h b/lib/isc/include/isc/util.h index bcfe3ad2ae..a392714e18 100644 --- a/lib/isc/include/isc/util.h +++ b/lib/isc/include/isc/util.h @@ -27,8 +27,6 @@ * ISC_ or isc_ to the name. */ -#include - /*** *** Clang Compatibility Macros ***/ @@ -122,8 +120,6 @@ #define ISC_UTIL_TRACE(a) #endif /* ifdef ISC_UTIL_TRACEON */ -#include /* Contractual promise. */ - #define SPINLOCK(sp) \ { \ ISC_UTIL_TRACE(fprintf(stderr, "SPINLOCKING %p %s %d\n", (sp), \ @@ -218,11 +214,6 @@ INSIST(locktype == isc_rwlocktype_write); \ } -/* - * List Macros. - */ -#include /* Contractual promise. */ - /*% * Performance */ @@ -318,8 +309,6 @@ mock_assert(const int result, const char *const expression, /* * Errors */ -#include /* for errno */ - #include /* Contractual promise. */ #include /* for ISC_STRERRORSIZE */