diff options
author | Bram Moolenaar <Bram@vim.org> | 2022-07-28 12:09:04 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2022-07-28 12:09:04 +0100 |
commit | 5748b7f2c8a8e8e6d12b3e2531df5c0261fd8f3b (patch) | |
tree | eee4fa7fd4a72d8c407f3c4e9cdae99437084b8c /src/auto | |
parent | 5f30e26f6946f0d0396499f91fbcfaa9d1f8acf7 (diff) |
patch 9.0.0098: missing include file in timer_create configure checkv9.0.0098
Problem: missing include file in timer_create configure check.
Solution: Inlucde stdlib.h.
Diffstat (limited to 'src/auto')
-rwxr-xr-x | src/auto/configure | 15 |
1 files changed, 12 insertions, 3 deletions
diff --git a/src/auto/configure b/src/auto/configure index da57bd08a1..dc9ee6e777 100755 --- a/src/auto/configure +++ b/src/auto/configure @@ -13042,7 +13042,8 @@ $as_echo_n "checking for timer_create... " >&6; } if ${vim_cv_timer_create+:} false; then : $as_echo_n "(cached) " >&6 else - save_LIBS="$LIBS" + +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,8 +13052,12 @@ else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ -#include<signal.h> -#include<time.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,6 +13091,10 @@ else 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) {} |