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
commit76002f9ad99b6735fa0fea4ad51de6c75f034bbf (patch)
treeae7de8bf817ce2c29dbe565c9e59804d9c05c4d7
parent7cecc9a71f3e6c6309f6e7f1ccac8a5bd6ce9445 (diff)
downloadruby-76002f9ad99b6735fa0fea4ad51de6c75f034bbf.tar.gz
ruby-76002f9ad99b6735fa0fea4ad51de6c75f034bbf.tar.xz
ruby-76002f9ad99b6735fa0fea4ad51de6c75f034bbf.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/branches/ruby_1_8@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 ad51cee8a..63741f9ed 100644
--- a/process.c
+++ b/process.c
@@ -3544,12 +3544,8 @@ Init_process()
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));