Patch 9.0.0098
Problem:    missing include file in timer_create configure check.
Solution:   Inlucde stdlib.h.
Files:      src/configure.ac, src/auto/configure


*** ../vim-9.0.0097/src/configure.ac    2022-07-24 20:47:56.218680122 +0100
--- src/configure.ac    2022-07-28 12:04:34.462277718 +0100
***************
*** 3807,3818 ****
  dnl Check for timer_create. It probably requires the 'rt' library.
  dnl Run the program to find out if timer_create(CLOCK_MONOTONIC) actually
  dnl works, on Solaris timer_create() exists but fails at runtime.
! AC_CACHE_CHECK([for timer_create], [vim_cv_timer_create],
  save_LIBS="$LIBS"
  LIBS="$LIBS -lrt"
  AC_RUN_IFELSE([AC_LANG_PROGRAM([
! #include<signal.h>
! #include<time.h>
  static void set_flag(union sigval sv) {}
  ], [
    struct timespec ts;
--- 3807,3822 ----
  dnl Check for timer_create. It probably requires the 'rt' library.
  dnl Run the program to find out if timer_create(CLOCK_MONOTONIC) actually
  dnl works, on Solaris timer_create() exists but fails at runtime.
! AC_CACHE_CHECK([for timer_create], [vim_cv_timer_create], [
  save_LIBS="$LIBS"
  LIBS="$LIBS -lrt"
  AC_RUN_IFELSE([AC_LANG_PROGRAM([
! #if STDC_HEADERS
! # include <stdlib.h>
! # include <stddef.h>
! #endif
! #include <signal.h>
! #include <time.h>
  static void set_flag(union sigval sv) {}
  ], [
    struct timespec ts;
***************
*** 3827,3832 ****
--- 3831,3840 ----
    AC_MSG_NOTICE(timer_create with -lrt); vim_cv_timer_create=yes,
    LIBS="$save_LIBS"
    AC_RUN_IFELSE([AC_LANG_PROGRAM([
+ #if STDC_HEADERS
+ # include <stdlib.h>
+ # include <stddef.h>
+ #endif
  #include<signal.h>
  #include<time.h>
  static void set_flag(union sigval sv) {}
***************
*** 3843,3849 ****
      vim_cv_timer_create=yes,
      vim_cv_timer_create=no),
      AC_MSG_ERROR(cross-compiling: please set 'vim_cv_timer_create')
!     )
  )
  
  if test "x$vim_cv_timer_create" = "xyes" ; then
--- 3851,3857 ----
      vim_cv_timer_create=yes,
      vim_cv_timer_create=no),
      AC_MSG_ERROR(cross-compiling: please set 'vim_cv_timer_create')
!     )]
  )
  
  if test "x$vim_cv_timer_create" = "xyes" ; then
*** ../vim-9.0.0097/src/auto/configure  2022-07-24 20:47:56.218680122 +0100
--- src/auto/configure  2022-07-28 12:04:39.646270086 +0100
***************
*** 13042,13048 ****
  if ${vim_cv_timer_create+:} false; then :
    $as_echo_n "(cached) " >&6
  else
!   save_LIBS="$LIBS"
  LIBS="$LIBS -lrt"
  if test "$cross_compiling" = yes; then :
    as_fn_error $? "cross-compiling: please set 'vim_cv_timer_create'" 
"$LINENO" 5
--- 13042,13049 ----
  if ${vim_cv_timer_create+:} false; then :
    $as_echo_n "(cached) " >&6
  else
! 
! save_LIBS="$LIBS"
  LIBS="$LIBS -lrt"
  if test "$cross_compiling" = yes; then :
    as_fn_error $? "cross-compiling: please set 'vim_cv_timer_create'" 
"$LINENO" 5
***************
*** 13051,13058 ****
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  /* end confdefs.h.  */
  
! #include<signal.h>
! #include<time.h>
  static void set_flag(union sigval sv) {}
  
  int
--- 13052,13063 ----
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  /* end confdefs.h.  */
  
! #if STDC_HEADERS
! # include <stdlib.h>
! # include <stddef.h>
! #endif
! #include <signal.h>
! #include <time.h>
  static void set_flag(union sigval sv) {}
  
  int
***************
*** 13086,13091 ****
--- 13091,13100 ----
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  /* end confdefs.h.  */
  
+ #if STDC_HEADERS
+ # include <stdlib.h>
+ # include <stddef.h>
+ #endif
  #include<signal.h>
  #include<time.h>
  static void set_flag(union sigval sv) {}
*** ../vim-9.0.0097/src/version.c       2022-07-28 11:55:58.331052848 +0100
--- src/version.c       2022-07-28 12:08:38.981904823 +0100
***************
*** 737,738 ****
--- 737,740 ----
  {   /* Add new patch number below this line */
+ /**/
+     98,
  /**/

-- 
hundred-and-one symptoms of being an internet addict:
165. You have a web page burned into your glasses

 /// Bram Moolenaar -- [email protected] -- http://www.Moolenaar.net   \\\
///                                                                      \\\
\\\        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ ///
 \\\            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/20220728110939.99C4B1C0A39%40moolenaar.net.

Raspunde prin e-mail lui