Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 220040 | Differences between
and this patch

Collapse All | Expand All

(-)file_not_specified_in_diff (-9 / +15 lines)
Line  Link Here
0
-- configure
0
++ configure
Lines 10518-10523 Link Here
10518
# endif
10791
# endif
10519
#endif
10792
#endif
10520
10793
10794
#include <limits.h>
10521
#include <stdlib.h>
10795
#include <stdlib.h>
10522
10796
10523
#ifdef HAVE_UNISTD_H
10797
#ifdef HAVE_UNISTD_H
Lines 10666-10677 Link Here
10666
     isn't worth using anyway.  */
10940
     isn't worth using anyway.  */
10667
  alarm (60);
10941
  alarm (60);
10668
10942
10669
  for (time_t_max = 1; 0 < time_t_max; time_t_max *= 2)
10943
  for (;;)
10670
    continue;
10944
    {
10671
  time_t_max--;
10945
      t = (time_t_max << 1) + 1;
10672
  if ((time_t) -1 < 0)
10946
      if (t <= time_t_max)
10673
    for (time_t_min = -1; (time_t) (time_t_min * 2) < 0; time_t_min *= 2)
10947
	break;
10674
      continue;
10948
      time_t_max = t;
10949
    }
10950
  time_t_min = - ((time_t) ~ (time_t) 0 == (time_t) -1) - time_t_max;
10951
10675
  delta = time_t_max / 997; /* a suitable prime number */
10952
  delta = time_t_max / 997; /* a suitable prime number */
10676
  for (i = 0; i < N_STRINGS; i++)
10953
  for (i = 0; i < N_STRINGS; i++)
10677
    {
10954
    {
Lines 10686-10695 Link Here
10686
	     && mktime_test ((time_t) (60 * 60 * 24))))
10963
	     && mktime_test ((time_t) (60 * 60 * 24))))
10687
	return 1;
10964
	return 1;
10688
10965
10689
      for (j = 1; 0 < j; j *= 2)
10966
      for (j = 1; ; j <<= 1)
10690
	if (! bigtime_test (j))
10967
	if (! bigtime_test (j))
10691
	  return 1;
10968
	  return 1;
10692
      if (! bigtime_test (j - 1))
10969
	else if (INT_MAX / 2 < j)
10970
	  break;
10971
      if (! bigtime_test (INT_MAX))
10693
	return 1;
10972
	return 1;
10694
    }
10973
    }
10695
  return ! (irix_6_4_bug () && spring_forward_gap () && year_2050_test ());
10974
  return ! (irix_6_4_bug () && spring_forward_gap () && year_2050_test ());

Return to bug 220040