From 7dcfeb54626712b69dd94221c48dbdbb2f48af92 Mon Sep 17 00:00:00 2001 From: "A. Wilcox" Date: Sun, 4 Mar 2018 21:41:25 -0600 Subject: harmony/libevent: make tests pass on 32-bit arches --- harmony/libevent/fix-test-on-32bit.patch | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 harmony/libevent/fix-test-on-32bit.patch (limited to 'harmony/libevent/fix-test-on-32bit.patch') diff --git a/harmony/libevent/fix-test-on-32bit.patch b/harmony/libevent/fix-test-on-32bit.patch new file mode 100644 index 000000000..ec120a78c --- /dev/null +++ b/harmony/libevent/fix-test-on-32bit.patch @@ -0,0 +1,11 @@ +--- libevent-2.1.8-stable/test/regress_util.c.old 2018-03-04 21:14:24.344542520 -0600 ++++ libevent-2.1.8-stable/test/regress_util.c 2018-03-04 21:24:23.788814572 -0600 +@@ -1411,7 +1411,7 @@ + { 1255132800, "Sat, 10 Oct 2009 00:00:00 GMT"}, + { 1289433600, "Thu, 11 Nov 2010 00:00:00 GMT"}, + { 1323648000, "Mon, 12 Dec 2011 00:00:00 GMT"}, +-#ifndef _WIN32 ++#if !defined(_WIN32) && (!defined(__SIZEOF_LONG__) || __SIZEOF_LONG__ > 4) + /** In win32 case we have max "23:59:59 January 18, 2038, UTC" for time32 */ + { 4294967296, "Sun, 07 Feb 2106 06:28:16 GMT"} /* 2^32 */, + /** In win32 case we have max "23:59:59, December 31, 3000, UTC" for time64 */ -- cgit v1.2.3-60-g2f50