[前][次][番号順一覧][スレッド一覧]

ruby-changes:37240

From: nobu <ko1@a...>
Date: Sun, 18 Jan 2015 15:50:45 +0900 (JST)
Subject: [ruby-changes:37240] nobu:r49321 (trunk): vm_dump.c: check by configured result

nobu	2015-01-18 15:50:41 +0900 (Sun, 18 Jan 2015)

  New Revision: 49321

  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=49321

  Log:
    vm_dump.c: check by configured result
    
    * 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]

  Modified files:
    trunk/ChangeLog
    trunk/vm_dump.c
Index: ChangeLog
===================================================================
--- ChangeLog	(revision 49320)
+++ ChangeLog	(revision 49321)
@@ -1,3 +1,9 @@ https://github.com/ruby/ruby/blob/trunk/ChangeLog#L1
+Sun Jan 18 15:50:39 2015  Nobuyoshi Nakada  <nobu@r...>
+
+	* 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]
+
 Sun Jan 18 12:56:49 2015  Nobuyoshi Nakada  <nobu@r...>
 
 	* Makefile.in (VPATH, NEWLINE_C), common.mk (common-srcs): make
Index: vm_dump.c
===================================================================
--- vm_dump.c	(revision 49320)
+++ vm_dump.c	(revision 49321)
@@ -711,7 +711,7 @@ rb_print_backtrace(void) https://github.com/ruby/ruby/blob/trunk/vm_dump.c#L711
 #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) https://github.com/ruby/ruby/blob/trunk/vm_dump.c#L1033
 	    }
 	}
 #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;

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]