]> granicus.if.org Git - zfs/commit
libtpool: don't clone affinity if not supported
authoralaviss <alaviss@users.noreply.github.com>
Tue, 29 Aug 2017 17:17:49 +0000 (00:17 +0700)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Tue, 29 Aug 2017 17:17:49 +0000 (10:17 -0700)
commit1ea8942faa90c1787f3ad1bda44dc26bfc3186da
tree0679acfa19a22d43d325e1331d4aed264a7c966e
parent0d3980acbcca00f495926a1d6b0886e0ea1f6589
libtpool: don't clone affinity if not supported

pthread_attr_(get/set)affinity_np() is glibc-only. This commit
disable the code path that use those functions in non-glibc
system. Fixes the following when building with musl:

libzfs.so: undefined reference to`pthread_attr_setaffinity_np'
libzfs.so: undefined reference to`pthread_attr_getaffinity_np'

Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Leorize <alaviss@users.noreply.github.com>
Closes #6571
lib/libtpool/thread_pool.c