mirror of
https://github.com/owntone/owntone-server.git
synced 2025-01-23 12:43:18 -05:00
[configure] Fix AC_TRY_LINK warning (#1839)
This commit is contained in:
parent
afee011fe8
commit
ca865ecbe0
@ -77,8 +77,8 @@ AC_SEARCH_LIBS([pthread_exit], [pthread], [],
|
|||||||
AC_SEARCH_LIBS([pthread_setname_np], [pthread],
|
AC_SEARCH_LIBS([pthread_setname_np], [pthread],
|
||||||
[dnl Validate pthread_setname_np with 2 args (some have 1)
|
[dnl Validate pthread_setname_np with 2 args (some have 1)
|
||||||
AC_MSG_CHECKING([[for two-parameter pthread_setname_np]])
|
AC_MSG_CHECKING([[for two-parameter pthread_setname_np]])
|
||||||
AC_TRY_LINK([@%:@include <pthread.h>],
|
AC_LINK_IFELSE([AC_LANG_PROGRAM([[@%:@include <pthread.h>]],
|
||||||
[pthread_setname_np(pthread_self(), "name");],
|
[[pthread_setname_np(pthread_self(), "name");]])],
|
||||||
[AC_MSG_RESULT([yes])
|
[AC_MSG_RESULT([yes])
|
||||||
AC_DEFINE([HAVE_PTHREAD_SETNAME_NP], 1,
|
AC_DEFINE([HAVE_PTHREAD_SETNAME_NP], 1,
|
||||||
[Define to 1 if you have pthread_setname_np])],
|
[Define to 1 if you have pthread_setname_np])],
|
||||||
|
Loading…
x
Reference in New Issue
Block a user