2
0
mirror of https://gitlab.isc.org/isc-projects/bind9 synced 2025-09-02 23:55:27 +00:00

Remove priority from attribute constructor/destructor

On some platforms, the __attribute__ constructor and destructor won't
take priorities and the compilation failed.  On such platform would be
macOS.  For this reason, the constructor/destructor in the libisc was
reworked to not use priorities, but have a single constructor and
destructor that calls the appropriate routines in correct order.

This commit removes the extra priority because it's now not needed and
it also breaks a compilation on macOS with GCC 10.
This commit is contained in:
Mark Andrews
2021-05-19 16:38:33 +10:00
committed by Ondřej Surý
parent 728422d939
commit d68b009cfe
2 changed files with 6 additions and 6 deletions

View File

@@ -36,9 +36,9 @@ isc_lib_register(void) {
}
void
isc__initialize(void) ISC_CONSTRUCTOR(101);
isc__initialize(void) ISC_CONSTRUCTOR;
void
isc__shutdown(void) ISC_DESTRUCTOR(101);
isc__shutdown(void) ISC_DESTRUCTOR;
void
isc__initialize(void) {