]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
Check if threads support is available
authorMukund Sivaraman <muks@isc.org>
Fri, 4 Mar 2016 08:35:22 +0000 (14:05 +0530)
committerMukund Sivaraman <muks@isc.org>
Fri, 4 Mar 2016 08:38:05 +0000 (14:08 +0530)
(cherry picked from commit 2457a4b245abd07322b793cdd8dfb184b1add4c4)
(cherry picked from commit 491a5a2a3c58cdf3863c43f0a6698165ab7f78c7)

lib/dns/tests/name_test.c

index 32c438eaa28c10255569e85435c3e3e242b80d3c..40c60ddd36ddca368f7d1b32ac4f9f0c1dd8755d 100644 (file)
@@ -120,6 +120,7 @@ ATF_TC_BODY(fullcompare, tc) {
        }
 }
 
+#ifdef ISC_PLATFORM_USETHREADS
 #ifdef DNS_BENCHMARK_TESTS
 
 /*
@@ -215,15 +216,18 @@ ATF_TC_BODY(benchmark, tc) {
 }
 
 #endif /* DNS_BENCHMARK_TESTS */
+#endif /* ISC_PLATFORM_USETHREADS */
 
 /*
  * Main
  */
 ATF_TP_ADD_TCS(tp) {
        ATF_TP_ADD_TC(tp, fullcompare);
+#ifdef ISC_PLATFORM_USETHREADS
 #ifdef DNS_BENCHMARK_TESTS
        ATF_TP_ADD_TC(tp, benchmark);
 #endif /* DNS_BENCHMARK_TESTS */
+#endif /* ISC_PLATFORM_USETHREADS */
 
        return (atf_no_error());
 }