diff options
author | ryoon <ryoon@pkgsrc.org> | 2013-10-07 15:58:48 +0000 |
---|---|---|
committer | ryoon <ryoon@pkgsrc.org> | 2013-10-07 15:58:48 +0000 |
commit | 3d22440874d7090de1c2219da6c8ed5d2844ded9 (patch) | |
tree | 4b94ff4473348a197a0f659c31cc3222d411f065 /textproc/icu | |
parent | a5f75a6a2ba2431910a293a9c39e04aad4bfc97d (diff) | |
download | pkgsrc-3d22440874d7090de1c2219da6c8ed5d2844ded9.tar.gz |
Fix build on OpenBSD.
Diffstat (limited to 'textproc/icu')
-rw-r--r-- | textproc/icu/distinfo | 4 | ||||
-rw-r--r-- | textproc/icu/patches/patch-common_unicode_platform.h | 12 |
2 files changed, 11 insertions, 5 deletions
diff --git a/textproc/icu/distinfo b/textproc/icu/distinfo index 4b3508ec3b1..56b4209c6aa 100644 --- a/textproc/icu/distinfo +++ b/textproc/icu/distinfo @@ -1,4 +1,4 @@ -$NetBSD: distinfo,v 1.38 2013/10/05 11:43:32 tron Exp $ +$NetBSD: distinfo,v 1.39 2013/10/07 15:58:48 ryoon Exp $ SHA1 (icu4c-51_2-src.tgz) = 074a28dfc96d37ce72c831f3e3e2d686f1f76a14 RMD160 (icu4c-51_2-src.tgz) = ef1256bb87b3dcec1cf40b32b11c5c3f1bd48af6 @@ -10,7 +10,7 @@ SHA1 (patch-ad) = 024dcc26c96a4c9de88890f2e2a093b2d08014a0 SHA1 (patch-af) = b6314fb4f807b64e1b37f67d2aefe86e30707842 SHA1 (patch-common_Makefile.in) = 20fa472bd0e5e5fac15153774a58a8ce034d1996 SHA1 (patch-common_putilimp.h) = ff97ae0b8fd96ec8296e5164c135610a1a358810 -SHA1 (patch-common_unicode_platform.h) = 36cb68164fcf9b2858acabe95f0206e8088bfbaa +SHA1 (patch-common_unicode_platform.h) = b63efd1a91fd32c8c36ed2b0e066955c65f1cc66 SHA1 (patch-common_uposixdefs.h) = abe1989ea4312702e5d0172b662409957b3e2d91 SHA1 (patch-config_icu-config-bottom) = 4a167249d58cb6c729bc164e6abae869dd5e6b1a SHA1 (patch-config_mh-cygwin) = e3aa7a926244b448ce12ab2f89156348a02c0659 diff --git a/textproc/icu/patches/patch-common_unicode_platform.h b/textproc/icu/patches/patch-common_unicode_platform.h index 5ce33938da0..6e2f2382498 100644 --- a/textproc/icu/patches/patch-common_unicode_platform.h +++ b/textproc/icu/patches/patch-common_unicode_platform.h @@ -1,6 +1,8 @@ -$NetBSD: patch-common_unicode_platform.h,v 1.3 2012/11/07 20:59:51 adam Exp $ +$NetBSD: patch-common_unicode_platform.h,v 1.4 2013/10/07 15:58:48 ryoon Exp $ ---- common/unicode/platform.h.orig 2012-11-05 17:14:34.000000000 +0000 +* For OpenBSD, include machine/endian.h. + +--- common/unicode/platform.h.orig 2013-05-23 20:01:56.000000000 +0000 +++ common/unicode/platform.h @@ -144,7 +144,7 @@ # include <android/api-level.h> @@ -11,12 +13,16 @@ $NetBSD: patch-common_unicode_platform.h,v 1.3 2012/11/07 20:59:51 adam Exp $ # define U_PLATFORM U_PF_BSD #elif defined(sun) || defined(__sun) /* Check defined(__SVR4) || defined(__svr4__) to distinguish Solaris from SunOS? */ -@@ -381,6 +381,13 @@ +@@ -381,6 +381,17 @@ # 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 ++#if defined(__OpenBSD__) ++#include <machine/endian.h> ++#else +#include <sys/endian.h> ++#endif +#if _BYTE_ORDER == _LITTLE_ENDIAN +# define U_IS_BIG_ENDIAN 0 +#else |