diff options
author | stas <stas@FreeBSD.org> | 2010-04-29 03:10:27 +0800 |
---|---|---|
committer | stas <stas@FreeBSD.org> | 2010-04-29 03:10:27 +0800 |
commit | 8457bf58f0415c0920a8e5a1a86b83abda58f658 (patch) | |
tree | 534fc3012561c51cdb8f36a3105777074feed572 /lang/ruby18 | |
parent | 0c071565f8b525987769807f52dd5e43702e68ef (diff) | |
download | freebsd-ports-gnome-8457bf58f0415c0920a8e5a1a86b83abda58f658.tar.gz freebsd-ports-gnome-8457bf58f0415c0920a8e5a1a86b83abda58f658.tar.zst freebsd-ports-gnome-8457bf58f0415c0920a8e5a1a86b83abda58f658.zip |
- Fix build without pthreads.
PR: ports/146112
Reported by: Paul <Paul.Shepel@gmail.com>
Diffstat (limited to 'lang/ruby18')
-rw-r--r-- | lang/ruby18/files/patch-process.c | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/lang/ruby18/files/patch-process.c b/lang/ruby18/files/patch-process.c index 6b8f08bae09c..520c6da91c64 100644 --- a/lang/ruby18/files/patch-process.c +++ b/lang/ruby18/files/patch-process.c @@ -1,11 +1,14 @@ ---- process.c.orig 2010-04-27 01:11:32.000000000 -0700 -+++ process.c 2010-04-27 01:11:39.000000000 -0700 -@@ -920,7 +920,7 @@ +--- process.c.orig 2008-06-29 02:34:43.000000000 -0700 ++++ process.c 2010-04-28 12:05:10.000000000 -0700 +@@ -920,7 +920,11 @@ #endif #ifdef HAVE_SETITIMER --#define before_exec() rb_thread_stop_timer() ++#if defined(_THREAD_SAFE) +#define before_exec() rb_thread_stop_timer_fake() ++#else + #define before_exec() rb_thread_stop_timer() ++#endif #define after_exec() rb_thread_start_timer() #else #define before_exec() |