diff options
author | naruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2015-01-19 03:04:49 +0000 |
---|---|---|
committer | naruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2015-01-19 03:04:49 +0000 |
commit | 6222c2081d10de3d8f0a5d44f44f9db1dfdc4423 (patch) | |
tree | 05cc522a294cd64764e25db064ff0d738aa1041d /vm_dump.c | |
parent | e8e1a374f0a876a738027f5aaabba85b21a6538a (diff) |
merge revision(s) 49321: [Backport #10752]
* vm_dump.c (rb_vm_bugreport): check by configured result instead
of system name for old FreeBSD. based on a patch by Steve Wills
at [ruby-core:67655]. [Bug #10752]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_2@49330 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'vm_dump.c')
-rw-r--r-- | vm_dump.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -711,7 +711,7 @@ rb_print_backtrace(void) #endif } -#ifdef __FreeBSD__ +#ifdef HAVE_LIBPROCSTAT #include <sys/user.h> #include <sys/sysctl.h> #include <sys/param.h> @@ -1033,7 +1033,7 @@ rb_vm_bugreport(const void *ctx) } } #endif /* __linux__ */ -#ifdef __FreeBSD__ +#ifdef HAVE_LIBPROCSTAT # define MIB_KERN_PROC_PID_LEN 4 int mib[MIB_KERN_PROC_PID_LEN]; struct kinfo_proc kp; |