From 6b56dc56c8e116cabd8a10b9204a0e2cf369655d Mon Sep 17 00:00:00 2001 From: Artem Boldariev Date: Tue, 12 Apr 2022 15:44:40 +0300 Subject: [PATCH] Rename yield() to the test_server_yield() This commit ensures that the test_server binary will build on Solaris, which has yield() definition within 'unistd.h'. --- bin/tests/test_server.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bin/tests/test_server.c b/bin/tests/test_server.c index e1c59c8b82..728927e355 100644 --- a/bin/tests/test_server.c +++ b/bin/tests/test_server.c @@ -202,7 +202,7 @@ teardown(void) { } static void -yield(void) { +test_server_yield(void) { sigset_t sset; int sig; @@ -307,7 +307,7 @@ run(void) { } REQUIRE(result == ISC_R_SUCCESS); - yield(); + test_server_yield(); isc_nm_stoplistening(sock); isc_nmsocket_close(&sock);