diff options
author | knu <knu@FreeBSD.org> | 2002-12-31 18:41:03 +0800 |
---|---|---|
committer | knu <knu@FreeBSD.org> | 2002-12-31 18:41:03 +0800 |
commit | cd2aa3b6d1717e0fc04a5c5780597f54ea5819ea (patch) | |
tree | 53e87fcaef29dafaedb4022f815c417f78b1c7b1 /lang/ruby16 | |
parent | d77732e3b0dd7ba2de173e989ce988c471cd9964 (diff) | |
download | freebsd-ports-gnome-cd2aa3b6d1717e0fc04a5c5780597f54ea5819ea.tar.gz freebsd-ports-gnome-cd2aa3b6d1717e0fc04a5c5780597f54ea5819ea.tar.zst freebsd-ports-gnome-cd2aa3b6d1717e0fc04a5c5780597f54ea5819ea.zip |
Add a patch to support FreeBSD/sparc64.
Obtained from: self (Ruby CVS)
Diffstat (limited to 'lang/ruby16')
-rw-r--r-- | lang/ruby16/files/patch-defines.h | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/lang/ruby16/files/patch-defines.h b/lang/ruby16/files/patch-defines.h new file mode 100644 index 000000000000..a33d5d8ee9ef --- /dev/null +++ b/lang/ruby16/files/patch-defines.h @@ -0,0 +1,30 @@ +Index: defines.h +=================================================================== +RCS file: /src/ruby/defines.h,v +retrieving revision 1.12.2.2 +retrieving revision 1.12.2.3 +diff -u -r1.12.2.2 -r1.12.2.3 +--- defines.h 4 Jan 2002 14:19:47 -0000 1.12.2.2 ++++ defines.h 31 Dec 2002 10:30:41 -0000 1.12.2.3 +@@ -2,8 +2,8 @@ + + defines.h - + +- $Author: matz $ +- $Date: 2002/01/04 14:19:47 $ ++ $Author: knu $ ++ $Date: 2002/12/31 10:30:41 $ + created at: Wed May 18 00:21:44 JST 1994 + + ************************************************/ +@@ -52,7 +52,9 @@ + #if defined(sparc) || defined(__sparc__) + # if defined(linux) || defined(__linux__) + #define FLUSH_REGISTER_WINDOWS asm("ta 0x83") +-# else /* Solaris, not sparc linux */ ++# elif defined(__FreeBSD__) && defined(__sparc64__) ++#define FLUSH_REGISTER_WINDOWS asm volatile("flushw" : :) ++# else /* Solaris, OpenBSD, NetBSD, etc. */ + #define FLUSH_REGISTER_WINDOWS asm("ta 0x03") + # endif /* trap always to flush register windows if we are on a Sparc system */ + #else /* Not a sparc, so */ |