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:
@@ -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";
|
||||
|
Reference in New Issue
Block a user