fix breakage in last commit to strftime due to missing INT_MAX
authorRich Felker <dalias@aerifal.cx>
Fri, 28 Jun 2013 16:12:55 +0000 (12:12 -0400)
committerRich Felker <dalias@aerifal.cx>
Fri, 28 Jun 2013 16:12:55 +0000 (12:12 -0400)
that's what I get for changing a hard-coded threshold to a proper
non-magic-number without testing.

src/time/strftime.c

index ab1c6dc..b60197d 100644 (file)
@@ -2,6 +2,7 @@
 #include <stdlib.h>
 #include <langinfo.h>
 #include <time.h>
 #include <stdlib.h>
 #include <langinfo.h>
 #include <time.h>
+#include <limits.h>
 #include "__time.h"
 
 // FIXME: integer overflows
 #include "__time.h"
 
 // FIXME: integer overflows