openbsd-ports/devel/libev/patches/patch-ev_c
dcoppa b5e1dfa552 Add support for hppa (and unbreak build)
Problem reported by landry@
Cluestick from kettenis@
2012-08-21 13:22:50 +00:00

22 lines
907 B
Plaintext

$OpenBSD: patch-ev_c,v 1.3 2012/08/21 13:22:50 dcoppa Exp $
Add support for OpenBSD/alpha and OpenBSD/mips64 (latter from ev.c -r1.412).
Add support for OpenBSD/hppa
--- ev.c.orig Sat Feb 4 20:09:52 2012
+++ ev.c Tue Aug 21 14:14:58 2012
@@ -579,6 +579,12 @@ struct signalfd_siginfo
#define ECB_MEMORY_FENCE_RELEASE __asm__ __volatile__ ("membar #LoadStore | #StoreStore")
#elif defined(__s390__) || defined(__s390x__)
#define ECB_MEMORY_FENCE __asm__ __volatile__ ("bcr 15,0" : : : "memory")
+ #elif defined(__mips__)
+ #define ECB_MEMORY_FENCE __asm__ __volatile__ ("sync" : : : "memory")
+ #elif defined(__alpha__)
+ #define ECB_MEMORY_FENCE __asm__ __volatile__ ("mb" : : : "memory")
+ #elif defined(__hppa__)
+ #define ECB_MEMORY_FENCE __asm__ __volatile__ ("sync" : : : "memory")
#endif
#endif
#endif