From 4da0c49e809e0deefefdbf3f158c24526aaf3ecc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ond=C5=99ej=20Sur=C3=BD?= Date: Thu, 10 Jun 2021 08:08:09 +0200 Subject: [PATCH] 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. --- lib/isc/include/isc/platform.h.in | 6 ------ lib/isc/include/isc/strerr.h | 6 ++++++ 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/lib/isc/include/isc/platform.h.in b/lib/isc/include/isc/platform.h.in index 5bf8ccc214..73dbe80836 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 eebba51014..f2895986c2 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) */