commit | ef2f3ac5c63ad16ca73472be17286a07c6a3e8d2 | [log] [tgz] |
---|---|---|
author | Rosen Penev <rosenp@gmail.com> | Mon Jul 15 18:15:28 2019 -0700 |
committer | Michal Vasko <mvasko@cesnet.cz> | Tue Jul 16 15:13:27 2019 +0200 |
tree | c8e7f1c4b03f0de224cd29a889968858ce75c7bf | |
parent | e38d7ef95501efc3a8d872cc7120072e25801d44 [diff] [blame] |
Add support for musl libc musl does not support pthread_rwlockattr_setkind_np. Don't use it if it is not available.
diff --git a/src/config.h.in b/src/config.h.in index 96d33c5..30dd8a3 100644 --- a/src/config.h.in +++ b/src/config.h.in
@@ -73,4 +73,7 @@ */ #define NC_PS_QUEUE_SIZE @MAX_PSPOLL_THREAD_COUNT@ +/* Portability feature-check macros. */ +#cmakedefine HAVE_PTHREAD_RWLOCKATTR_SETKIND_NP + #endif /* NC_CONFIG_H_ */