FreeBSD Bugzilla – Attachment 159508 Details for
Bug 201681
[PATCH] [mips] print/harfbuzz: fails to build on mips
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
harfbuzz-fix-mips.diff
harfbuzz-fix-mips.diff (text/plain), 1.27 KB, created by
Carlos J Puga Medina
on 2015-08-03 23:36:49 UTC
(
hide
)
Description:
harfbuzz-fix-mips.diff
Filename:
MIME Type:
Creator:
Carlos J Puga Medina
Created:
2015-08-03 23:36:49 UTC
Size:
1.27 KB
patch
obsolete
>diff -urN harfbuzz.old/Makefile harfbuzz/Makefile >--- harfbuzz.old/Makefile 2015-08-04 01:26:54.102600000 +0200 >+++ harfbuzz/Makefile 2015-08-04 01:25:14.589759000 +0200 >@@ -3,6 +3,7 @@ > > PORTNAME= harfbuzz > PORTVERSION= 0.9.41 >+PORTREVISION= 1 > CATEGORIES= print > MASTER_SITES= http://www.freedesktop.org/software/harfbuzz/release/ > >diff -urN harfbuzz.old/files/patch-src_hb-atomic-private.hh harfbuzz/files/patch-src_hb-atomic-private.hh >--- harfbuzz.old/files/patch-src_hb-atomic-private.hh 1970-01-01 01:00:00.000000000 +0100 >+++ harfbuzz/files/patch-src_hb-atomic-private.hh 2015-08-04 00:40:39.005390000 +0200 >@@ -0,0 +1,16 @@ >+--- src/hb-atomic-private.hh.orig 2015-04-10 02:16:57 UTC >++++ src/hb-atomic-private.hh >+@@ -103,8 +103,12 @@ typedef int hb_atomic_int_impl_t; >+ #define hb_atomic_int_impl_add(AI, V) __sync_fetch_and_add (&(AI), (V)) >+ >+ #define hb_atomic_ptr_impl_get(P) (void *) (__sync_synchronize (), *(P)) >++#if defined(__FreeBSD__) && defined(__mips__) >++#include <machine/atomic.h> >++#define hb_atomic_ptr_impl_cmpexch(P,O,N) atomic_cmpset_rel_32 ((uint32_t *)(P), (uint32_t)(O), (uint32_t)(N)) >++#else >+ #define hb_atomic_ptr_impl_cmpexch(P,O,N) __sync_bool_compare_and_swap ((P), (O), (N)) >+- >++#endif >+ >+ #elif !defined(HB_NO_MT) && defined(HAVE_SOLARIS_ATOMIC_OPS) >+
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 201681
:
158950
|
158951
|
158958
| 159508