FreeBSD Bugzilla – Attachment 150332 Details for
Bug 195794
[mips] x11-fonts/fontconfig Patch to allow compilation on mips/mips64
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
patch to enable proper support on mips/mips64
patch-src_fcatomic.h (text/plain), 906 bytes, created by
Sean Bruno
on 2014-12-08 02:04:24 UTC
(
hide
)
Description:
patch to enable proper support on mips/mips64
Filename:
MIME Type:
Creator:
Sean Bruno
Created:
2014-12-08 02:04:24 UTC
Size:
906 bytes
patch
obsolete
>--- ./src/fcatomic.h.orig 2013-10-11 03:10:18.000000000 +0000 >+++ ./src/fcatomic.h 2014-12-06 21:48:12.136252912 +0000 >@@ -96,7 +96,17 @@ > #define fc_atomic_int_add(AI, V) __sync_fetch_and_add (&(AI), (V)) > > #define fc_atomic_ptr_get(P) (void *) (__sync_synchronize (), *(P)) >+#if defined(__FreeBSD__) && defined(__mips_n64) >+#include <sys/types.h> >+#include <machine/atomic.h> >+#define fc_atomic_ptr_cmpexch(P,O,N) atomic_cmpset_rel_64 ((uint64_t *)(P), (uint64_t)(O), (uint64_t)(N)) >+#elif defined(__FreeBSD__) && defined(__mips) >+#include <sys/types.h> >+#include <machine/atomic.h> >+#define fc_atomic_ptr_cmpexch(P,O,N) atomic_cmpset_rel_32 ((uint32_t *)(P), (uint32_t)(O), (uint32_t)(N)) >+#else > #define fc_atomic_ptr_cmpexch(P,O,N) __sync_bool_compare_and_swap ((P), (O), (N)) >+#endif /* defined(__FreeBSD__) && defined(__mips__) */ > > > #elif !defined(FC_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
Flags:
kwm
:
maintainer-approval+
Actions:
View
|
Diff
Attachments on
bug 195794
: 150332