Skip to content

Commit

Permalink
[configure] Fix AC_TRY_LINK warning (#1839)
Browse files Browse the repository at this point in the history
  • Loading branch information
hacketiwack authored Jan 19, 2025
1 parent 7c6252a commit b50616a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -77,8 +77,8 @@ AC_SEARCH_LIBS([pthread_exit], [pthread], [],
AC_SEARCH_LIBS([pthread_setname_np], [pthread],
[dnl Validate pthread_setname_np with 2 args (some have 1)
AC_MSG_CHECKING([[for two-parameter pthread_setname_np]])
AC_TRY_LINK([@%:@include <pthread.h>],
[pthread_setname_np(pthread_self(), "name");],
AC_LINK_IFELSE([AC_LANG_PROGRAM([[@%:@include <pthread.h>]],
[[pthread_setname_np(pthread_self(), "name");]])],
[AC_MSG_RESULT([yes])
AC_DEFINE([HAVE_PTHREAD_SETNAME_NP], 1,
[Define to 1 if you have pthread_setname_np])],
Expand Down

0 comments on commit b50616a

Please sign in to comment.