Skip to content
This repository was archived by the owner on Aug 13, 2025. It is now read-only.

Commit b573d4a

Browse files
committed
add --enable-dnsrps to gitlab CI
enable DNSRPS in the continuous integration tests this triggered a build failure in OpenBSD; building with DNSRPS causes arpa/nameser.h to be included, which defines the value STATUS. that value was then reused in server.c renaming the value to STAT corrects the error.
1 parent f43de96 commit b573d4a

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

.gitlab-ci.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -226,6 +226,7 @@ stages:
226226
--enable-developer
227227
--enable-option-checking=fatal
228228
--enable-dnstap
229+
--enable-dnsrps
229230
--with-cmocka
230231
--with-libxml2
231232
--with-json-c

bin/named/server.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15851,7 +15851,7 @@ named_server_mkeys(named_server_t *server, isc_lex_t *lex,
1585115851
dns_view_t *view = NULL;
1585215852
dns_rdataclass_t rdclass;
1585315853
char msg[DNS_NAME_FORMATSIZE + 500] = "";
15854-
enum { NONE, STATUS, REFRESH, SYNC, DESTROY } opt = NONE;
15854+
enum { NONE, STAT, REFRESH, SYNC, DESTROY } opt = NONE;
1585515855
bool found = false;
1585615856
bool first = true;
1585715857

@@ -15870,7 +15870,7 @@ named_server_mkeys(named_server_t *server, isc_lex_t *lex,
1587015870
}
1587115871

1587215872
if (strcasecmp(cmd, "status") == 0) {
15873-
opt = STATUS;
15873+
opt = STAT;
1587415874
} else if (strcasecmp(cmd, "refresh") == 0) {
1587515875
opt = REFRESH;
1587615876
} else if (strcasecmp(cmd, "sync") == 0) {
@@ -15929,7 +15929,7 @@ named_server_mkeys(named_server_t *server, isc_lex_t *lex,
1592915929
}
1593015930
CHECK(mkey_refresh(view, text));
1593115931
break;
15932-
case STATUS:
15932+
case STAT:
1593315933
if (!first) {
1593415934
CHECK(putstr(text, "\n\n"));
1593515935
}

0 commit comments

Comments
 (0)