From ef846caaa14c185ffe4e46a1a4f119a35ff37c34 Mon Sep 17 00:00:00 2001 From: Matthew Flatt Date: Mon, 30 Jan 2012 14:01:06 -0700 Subject: [PATCH] tighten bound for Mac OS X 10.6 localtime() hack It looks like my bound for last time was too conservative, in that I looked for the lowest number that didn't seem to fail in 10.6. The range of failing values is apparently not continuous. I've tightened the bound to match the lowest number that produces a useful result on my 10.7 machine, assuming that it works for a continuous range there. (The new bound is higher than the number previously used as a lower bound.) Merge to 5.2.1 --- src/racket/sconfig.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/racket/sconfig.h b/src/racket/sconfig.h index e101001619..dad9257be6 100644 --- a/src/racket/sconfig.h +++ b/src/racket/sconfig.h @@ -768,7 +768,7 @@ #if defined(__x86_64__) /* work around a bug in localtime() in 10.6.8 */ -# define MIN_VALID_DATE_SECONDS -67768122973193999 +# define MIN_VALID_DATE_SECONDS -67768040609715600 #endif # define FLAGS_ALREADY_SET