2
0
mirror of https://gitlab.isc.org/isc-projects/bind9 synced 2025-08-30 05:57:52 +00:00

fix: dev: Fix one-definition-rule violation in the loop unit test

Rename isc__loopmgr when including the loop.c into loop_test.c to prevent odr-violation over isc__loopmgr.

Merge branch 'ondrej/prevent-odr-violation-in-loop-unit-test' into 'main'

See merge request isc-projects/bind9!10772
This commit is contained in:
Ondřej Surý 2025-07-24 17:34:23 +02:00
commit b48040e788

View File

@ -33,6 +33,11 @@
#include <isc/result.h>
#include <isc/util.h>
/*
* Prevent the odr-violation by renaming isc__loopmgr when including loop.c for
* the second time.
*/
#define isc__loopmgr isc___loopmgr
#include "loop.c"
#include <tests/isc.h>