1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

Define Process.getrlimit and Process.setrlimit even if

getrlimit and setrlimit are not exist.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@10274 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
akr 2006-06-15 06:43:29 +00:00
parent 511626799f
commit bd7bd6427b

View file

@ -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));