mirror of
https://github.com/irssi/irssi.git
synced 2026-08-21 01:22:26 +02:00
Add a check for term.h
If term.h is present, use that instead of defining prototypes for the terminfo functions in terminfo-core.c. This causes problems on certain platforms (e.g. Apple aarch64) due to the functions being prototyped as non-variadic but called as variadic. If term.h isn't found, it falls back to the old behaviour. Fixes #1238.
This commit is contained in:
parent
6f38095cd6
commit
0b82f14151
3 changed files with 10 additions and 0 deletions
|
|
@ -355,6 +355,10 @@ if test "x$want_textui" != "xno"; then
|
|||
AC_SUBST(TEXTUI_LIBS)
|
||||
LIBS="$TEXTUI_NO_LIBS"
|
||||
|
||||
AC_CHECK_HEADER([term.h], [
|
||||
AC_DEFINE(HAVE_TERM_H, [], [Define to 1 if you have the `term.h' header.])
|
||||
])
|
||||
|
||||
fi
|
||||
|
||||
dnl **
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue