Fix MirBSD build by adding a <sys/time.h> include.

This commit is contained in:
bsiegert 2013-12-03 21:16:06 +00:00
parent f3b27add0f
commit 2da098dd5d
2 changed files with 5 additions and 4 deletions

View file

@ -1,4 +1,4 @@
$NetBSD: distinfo,v 1.41 2013/11/05 15:25:37 ryoon Exp $
$NetBSD: distinfo,v 1.42 2013/12/03 21:16:06 bsiegert Exp $
SHA1 (icu4c-52_1-src.tgz) = 6de440b71668f1a65a9344cdaf7a437291416781
RMD160 (icu4c-52_1-src.tgz) = cbfbb18c3991ba55ebb50c607d5208cbfeb9fce3
@ -10,7 +10,7 @@ SHA1 (patch-ad) = 8189e81e9c624e3b7a42f9af65a4b2f334747284
SHA1 (patch-af) = dcfbaf16844292a9ae57536ae2fb62fd1659d067
SHA1 (patch-common_Makefile.in) = 20fa472bd0e5e5fac15153774a58a8ce034d1996
SHA1 (patch-common_putilimp.h) = a68faa97c2bffeecaca1586e26f5bbe48e71b262
SHA1 (patch-common_unicode_platform.h) = 6b5989b06db0431f391809af05a1dca302f2e906
SHA1 (patch-common_unicode_platform.h) = 82786dff790782eb07cdc527061de33e771ec63c
SHA1 (patch-common_uposixdefs.h) = abe1989ea4312702e5d0172b662409957b3e2d91
SHA1 (patch-config_icu-config-bottom) = 168b89ee9180d4ae545125866ee91eb004010501
SHA1 (patch-config_mh-cygwin) = e3aa7a926244b448ce12ab2f89156348a02c0659

View file

@ -1,4 +1,4 @@
$NetBSD: patch-common_unicode_platform.h,v 1.5 2013/10/19 08:47:36 adam Exp $
$NetBSD: patch-common_unicode_platform.h,v 1.6 2013/12/03 21:16:06 bsiegert Exp $
--- common/unicode/platform.h.orig 2013-10-04 20:49:10.000000000 +0000
+++ common/unicode/platform.h
@ -11,11 +11,12 @@ $NetBSD: patch-common_unicode_platform.h,v 1.5 2013/10/19 08:47:36 adam Exp $
# define U_PLATFORM U_PF_BSD
#elif defined(sun) || defined(__sun)
/* Check defined(__SVR4) || defined(__svr4__) to distinguish Solaris from SunOS? */
@@ -379,6 +379,17 @@
@@ -379,6 +379,18 @@
# define U_IS_BIG_ENDIAN 1
#elif defined(__LITTLE_ENDIAN__) || defined(_LITTLE_ENDIAN)
# define U_IS_BIG_ENDIAN 0
+#elif U_PLATFORM == U_PF_BSD
+#include <sys/types.h>
+#if defined(__OpenBSD__)
+#include <machine/endian.h>
+#else