1
0
forked from aniani/vim

patch 8.2.1310: configure with Xcode 12 fails to check for tgetent

Problem:    Configure with Xcode 12 fails to check for tgetent.
Solution:   Declare tgetent(). (Ozaki Kiichi, closes #6558)
This commit is contained in:
Bram Moolenaar
2020-07-28 21:03:37 +02:00
parent 461f21242a
commit bd7f7c123d
3 changed files with 4 additions and 2 deletions

View File

@@ -3510,7 +3510,7 @@ fi
if test "x$olibs" = "x$LIBS"; then
AC_MSG_CHECKING([for tgetent()])
AC_TRY_LINK([],
AC_TRY_LINK([int tgetent(char *, const char *);],
[char s[10000]; int res = tgetent(s, "thisterminaldoesnotexist");],
AC_MSG_RESULT(yes),
AC_MSG_ERROR([NOT FOUND!