Patch 8.2.2056
Problem:    Configure fails when building with the
            "implicit-function-declaration" error enabled, specifically on Mac.
Solution:   Declear the functions like in the source code. (suggestion by
            Clemens Lang, closes #7380)
Files:      src/configure.ac, src/auto/configure


*** ../vim-8.2.2055/src/configure.ac    2020-10-03 14:23:46.152413468 +0200
--- src/configure.ac    2020-11-26 20:08:54.336945130 +0100
***************
*** 3593,3599 ****
  
  AC_MSG_CHECKING(for SVR4 ptys)
  if test -c /dev/ptmx ; then
!   AC_TRY_LINK([], [ptsname(0);grantpt(0);unlockpt(0);],
        AC_MSG_RESULT(yes); AC_DEFINE(HAVE_SVR4_PTYS),
        AC_MSG_RESULT(no))
  else
--- 3593,3607 ----
  
  AC_MSG_CHECKING(for SVR4 ptys)
  if test -c /dev/ptmx ; then
!   AC_TRY_LINK([
! // These should be in stdlib.h, but it depends on _XOPEN_SOURCE.
! char *ptsname(int);
! int unlockpt(int);
! int grantpt(int);
!              ], [
!               ptsname(0);
!               grantpt(0);
!               unlockpt(0);],
        AC_MSG_RESULT(yes); AC_DEFINE(HAVE_SVR4_PTYS),
        AC_MSG_RESULT(no))
  else
*** ../vim-8.2.2055/src/auto/configure  2020-10-03 14:23:46.156413453 +0200
--- src/auto/configure  2020-11-26 20:08:57.060938911 +0100
***************
*** 12350,12359 ****
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  /* end confdefs.h.  */
  
  int
  main ()
  {
! ptsname(0);grantpt(0);unlockpt(0);
    ;
    return 0;
  }
--- 12350,12367 ----
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  /* end confdefs.h.  */
  
+ // These should be in stdlib.h, but it depends on _XOPEN_SOURCE.
+ char *ptsname(int);
+ int unlockpt(int);
+ int grantpt(int);
+ 
  int
  main ()
  {
! 
!               ptsname(0);
!               grantpt(0);
!               unlockpt(0);
    ;
    return 0;
  }
*** ../vim-8.2.2055/src/version.c       2020-11-26 19:47:24.359855019 +0100
--- src/version.c       2020-11-26 19:55:53.717802737 +0100
***************
*** 752,753 ****
--- 752,755 ----
  {   /* Add new patch number below this line */
+ /**/
+     2056,
  /**/

-- 
We do not stumble over mountains, but over molehills.
                                Confucius

 /// Bram Moolenaar -- [email protected] -- http://www.Moolenaar.net   \\\
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\  an exciting new programming language -- http://www.Zimbu.org        ///
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///

-- 
-- 
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

--- 
You received this message because you are subscribed to the Google Groups 
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/vim_dev/202011261911.0AQJBhxS2442739%40masaka.moolenaar.net.

Raspunde prin e-mail lui