summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2006-06-15 06:43:29 +0000
committerakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2006-06-15 06:43:29 +0000
commit935475fc95825fb6264084908ba39f094f9466bb (patch)
tree7c9c45fed7458bb3c02447b1267c83e9327d8937
parent72a9833adb4cff54ea476672b834d13c60f1ebdb (diff)
downloadruby-935475fc95825fb6264084908ba39f094f9466bb.tar.gz
ruby-935475fc95825fb6264084908ba39f094f9466bb.tar.xz
ruby-935475fc95825fb6264084908ba39f094f9466bb.zip
Define Process.getrlimit and Process.setrlimit even if
getrlimit and setrlimit are not exist. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@10274 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r--process.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/process.c b/process.c
index 3112ecfe1..97a45d598 100644
--- a/process.c
+++ b/process.c
@@ -3631,12 +3631,8 @@ Init_process(void)
rb_define_const(rb_mProcess, "PRIO_USER", INT2FIX(PRIO_USER));
#endif
-#ifdef HAVE_GETRLIMIT
rb_define_module_function(rb_mProcess, "getrlimit", proc_getrlimit, 1);
-#endif
-#ifdef HAVE_SETRLIMIT
rb_define_module_function(rb_mProcess, "setrlimit", proc_setrlimit, -1);
-#endif
#ifdef RLIM2NUM
#ifdef RLIM_INFINITY
rb_define_const(rb_mProcess, "RLIM_INFINITY", RLIM2NUM(RLIM_INFINITY));