]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
Rename yield() to the test_server_yield()
authorArtem Boldariev <artem@boldariev.com>
Tue, 12 Apr 2022 12:44:40 +0000 (15:44 +0300)
committerArtem Boldariev <artem@boldariev.com>
Wed, 27 Apr 2022 16:58:38 +0000 (19:58 +0300)
This commit ensures that the test_server binary will build on Solaris,
which has yield() definition within 'unistd.h'.

bin/tests/test_server.c

index e1c59c8b8267d7b09392f7044f47e0cedf435168..728927e355568d0f91d1434b11cc80982ff70d75 100644 (file)
@@ -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);