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 ab1c6dcf52029de18a5cb77e08d35d4bef1a03f0..b60197df28a19c2dee757dfdaa01f1119d9f5223 100644 (file)
@@ -2,6 +2,7 @@
 #include <stdlib.h>
 #include <langinfo.h>
 #include <time.h>
+#include <limits.h>
 #include "__time.h"
 
 // FIXME: integer overflows