From: Ondřej Surý Date: Thu, 10 Jun 2021 06:08:09 +0000 (+0200) Subject: Move ISC_STRERRORSIZE to isc/strerr.h header X-Git-Tag: v9.17.17~45^2~2 X-Git-Url: http://git.ipfire.org/gitweb/index.cgi?a=commitdiff_plain;h=4da0c49e809e0deefefdbf3f158c24526aaf3ecc;p=thirdparty%2Fbind9.git Move ISC_STRERRORSIZE to isc/strerr.h header The ISC_STRERRORSIZE was defined in isc/platform.h header as the value was different between Windows and POSIX platforms. Now that Windows is gone, move the define to where it belongs. --- diff --git a/lib/isc/include/isc/platform.h.in b/lib/isc/include/isc/platform.h.in index 5bf8ccc2141..73dbe80836c 100644 --- a/lib/isc/include/isc/platform.h.in +++ b/lib/isc/include/isc/platform.h.in @@ -18,12 +18,6 @@ ***** Platform-dependent defines. *****/ -/*** - *** Default strerror_r buffer size - ***/ - -#define ISC_STRERRORSIZE 128 - /*** *** System limitations ***/ diff --git a/lib/isc/include/isc/strerr.h b/lib/isc/include/isc/strerr.h index eebba510143..f2895986c2a 100644 --- a/lib/isc/include/isc/strerr.h +++ b/lib/isc/include/isc/strerr.h @@ -15,6 +15,12 @@ #include +/*** + *** Default strerror_r buffer size + ***/ + +#define ISC_STRERRORSIZE 128 + #if defined(strerror_r) #undef strerror_r #endif /* if defined(strerror_r) */