2
0
mirror of https://gitlab.isc.org/isc-projects/bind9 synced 2025-08-31 14:35:26 +00:00

fix: test: Import isc/list.h after cmocka to avoid redefinition errors

Closes #5451

Merge branch '5451-fix-diff_test-inclusions' into 'bind-9.20'

See merge request isc-projects/bind9!10790
This commit is contained in:
Michal Nowak
2025-07-29 14:08:18 +02:00

View File

@@ -19,13 +19,14 @@
#include <stdlib.h>
#include <unistd.h>
#include "isc/list.h"
#define UNIT_TESTING
#include <cmocka.h>
#include <dns/diff.h>
/* isc/list.h must be imported after cmocka to avoid redefinition errors */
#include <isc/list.h>
#include <tests/dns.h>
unsigned char data_1[] = "\006name_1";