]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
lib: Fix test-utc-mktime with 32bit time_t
authorTimo Sirainen <timo.sirainen@dovecot.fi>
Tue, 21 Feb 2017 17:55:48 +0000 (19:55 +0200)
committerTimo Sirainen <timo.sirainen@dovecot.fi>
Tue, 21 Feb 2017 17:55:48 +0000 (19:55 +0200)
src/lib/test-utc-mktime.c

index 8a86d98e9a33651993472a8e03386939d23c24eb..753f3fa97f19c9a089443486843a4faa1fb95a0f 100644 (file)
@@ -24,7 +24,9 @@ void test_utc_mktime(void)
                { INT_MAX, INT_MAX, INT_MAX, INT_MAX, INT_MAX, INT_MAX, -1 },
                { 2038, 1, 19, 3, 14, 8, 2147483648 },
                { 2106, 2, 7, 6, 28, 15, 4294967295 },
+#if TIME_T_MAX_BITS > 32
                { 2106, 2, 7, 6, 28, 16, 4294967296 },
+#endif
                /* June leap second */
                { 2015, 6, 30, 23, 59, 59, 1435708799 },
                { 2015, 6, 30, 23, 59, 60, 1435708799 },