Skip to content

Commit

Permalink
Fix [15845d9fd8]: unix/tcl.m4: implicit declaration of exit() in time…
Browse files Browse the repository at this point in the history
…zone variable checks
  • Loading branch information
jan.nijtmans committed Nov 7, 2021
1 parent 36909da commit 5eb33c5
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
2 changes: 2 additions & 0 deletions unix/configure
Original file line number Diff line number Diff line change
Expand Up @@ -14133,6 +14133,7 @@ cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
#include <time.h>
#include <stdlib.h>
int
main ()
{
Expand Down Expand Up @@ -14199,6 +14200,7 @@ cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
#include <time.h>
#include <stdlib.h>
int
main ()
{
Expand Down
6 changes: 4 additions & 2 deletions unix/tcl.m4
Original file line number Diff line number Diff line change
Expand Up @@ -2349,7 +2349,8 @@ AC_DEFUN([SC_TIME_HANDLER], [
# (like convex) have timezone functions, etc.
#
AC_CACHE_CHECK([long timezone variable], tcl_cv_timezone_long, [
AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include <time.h>]],
AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include <time.h>
#include <stdlib.h>]],
[[extern long timezone;
timezone += 1;
exit (0);]])],
Expand All @@ -2361,7 +2362,8 @@ AC_DEFUN([SC_TIME_HANDLER], [
# On some systems (eg IRIX 6.2), timezone is a time_t and not a long.
#
AC_CACHE_CHECK([time_t timezone variable], tcl_cv_timezone_time, [
AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include <time.h>]],
AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include <time.h>
#include <stdlib.h>]],
[[extern time_t timezone;
timezone += 1;
exit (0);]])],
Expand Down

0 comments on commit 5eb33c5

Please sign in to comment.