Mercurial > vim
comparison src/auto/configure @ 29513:e6d788e0c121 v9.0.0098
patch 9.0.0098: missing include file in timer_create configure check
Commit: https://github.com/vim/vim/commit/5748b7f2c8a8e8e6d12b3e2531df5c0261fd8f3b
Author: Bram Moolenaar <Bram@vim.org>
Date: Thu Jul 28 12:09:04 2022 +0100
patch 9.0.0098: missing include file in timer_create configure check
Problem: missing include file in timer_create configure check.
Solution: Inlucde stdlib.h.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Thu, 28 Jul 2022 13:15:03 +0200 |
parents | ef4f17d97ad0 |
children | 1733b6162f75 |
comparison
equal
deleted
inserted
replaced
29512:2f9709d835ac | 29513:e6d788e0c121 |
---|---|
13040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for timer_create" >&5 | 13040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for timer_create" >&5 |
13041 $as_echo_n "checking for timer_create... " >&6; } | 13041 $as_echo_n "checking for timer_create... " >&6; } |
13042 if ${vim_cv_timer_create+:} false; then : | 13042 if ${vim_cv_timer_create+:} false; then : |
13043 $as_echo_n "(cached) " >&6 | 13043 $as_echo_n "(cached) " >&6 |
13044 else | 13044 else |
13045 save_LIBS="$LIBS" | 13045 |
13046 save_LIBS="$LIBS" | |
13046 LIBS="$LIBS -lrt" | 13047 LIBS="$LIBS -lrt" |
13047 if test "$cross_compiling" = yes; then : | 13048 if test "$cross_compiling" = yes; then : |
13048 as_fn_error $? "cross-compiling: please set 'vim_cv_timer_create'" "$LINENO" 5 | 13049 as_fn_error $? "cross-compiling: please set 'vim_cv_timer_create'" "$LINENO" 5 |
13049 | 13050 |
13050 else | 13051 else |
13051 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 13052 cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
13052 /* end confdefs.h. */ | 13053 /* end confdefs.h. */ |
13053 | 13054 |
13054 #include<signal.h> | 13055 #if STDC_HEADERS |
13055 #include<time.h> | 13056 # include <stdlib.h> |
13057 # include <stddef.h> | |
13058 #endif | |
13059 #include <signal.h> | |
13060 #include <time.h> | |
13056 static void set_flag(union sigval sv) {} | 13061 static void set_flag(union sigval sv) {} |
13057 | 13062 |
13058 int | 13063 int |
13059 main () | 13064 main () |
13060 { | 13065 { |
13084 See \`config.log' for more details" "$LINENO" 5; } | 13089 See \`config.log' for more details" "$LINENO" 5; } |
13085 else | 13090 else |
13086 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 13091 cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
13087 /* end confdefs.h. */ | 13092 /* end confdefs.h. */ |
13088 | 13093 |
13094 #if STDC_HEADERS | |
13095 # include <stdlib.h> | |
13096 # include <stddef.h> | |
13097 #endif | |
13089 #include<signal.h> | 13098 #include<signal.h> |
13090 #include<time.h> | 13099 #include<time.h> |
13091 static void set_flag(union sigval sv) {} | 13100 static void set_flag(union sigval sv) {} |
13092 | 13101 |
13093 int | 13102 int |