mirror of
https://github.com/profanity-im/profanity.git
synced 2024-12-04 14:46:46 -05:00
Fixed check for wget_wch to not rely on header
As per pasis suggestion at #421
This commit is contained in:
parent
b69c9aad87
commit
f983438e97
@ -103,9 +103,9 @@ CFLAGS_RESTORE="$CFLAGS"
|
|||||||
CFLAGS="$CFLAGS $NCURSES_CFLAGS"
|
CFLAGS="$CFLAGS $NCURSES_CFLAGS"
|
||||||
AC_CACHE_CHECK([for wget_wch support in $NCURSES], ncurses_cv_wget_wch,
|
AC_CACHE_CHECK([for wget_wch support in $NCURSES], ncurses_cv_wget_wch,
|
||||||
[AC_LINK_IFELSE([AC_LANG_SOURCE([
|
[AC_LINK_IFELSE([AC_LANG_SOURCE([
|
||||||
#include <ncurses.h>
|
void wget_wch(void);
|
||||||
int main() {
|
int main() {
|
||||||
(void)wget_wch(NULL, NULL);
|
wget_wch();
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
])],
|
])],
|
||||||
|
Loading…
Reference in New Issue
Block a user