From baf02b9a6330acff09c80f27cfc2e7b8536f5f68 Mon Sep 17 00:00:00 2001 From: nagai Date: Fri, 1 Aug 2003 18:51:10 +0000 Subject: [PATCH] * (bug fix) preprocessor errors occur on OpenBSD-current git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4276 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- process.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/process.c b/process.c index 3c46f836d0..d610931b2e 100644 --- a/process.c +++ b/process.c @@ -1997,7 +1997,7 @@ p_gid_exchange(obj) static VALUE p_uid_have_saved_id() { -#if defined(HAVE_SETRESUID) || defined(HAVE_SETEUID) || _POSIX_SAVED_IDS +#if defined(HAVE_SETRESUID) || defined(HAVE_SETEUID) || defined(_POSIX_SAVED_IDS) return Qtrue; #else return Qfalse; @@ -2014,7 +2014,7 @@ p_uid_switch(obj) uid = getuid(); euid = geteuid(); -#if defined(HAVE_SETRESUID) || defined(HAVE_SETEUID) || _POSIX_SAVED_IDS +#if defined(HAVE_SETRESUID) || defined(HAVE_SETEUID) || defined(_POSIX_SAVED_IDS) if (uid != euid) { proc_seteuid(obj, INT2FIX(uid)); if (rb_block_given_p()) { @@ -2050,7 +2050,7 @@ p_uid_switch(obj) static VALUE p_gid_have_saved_id() { -#if defined(HAVE_SETRESGID) || defined(HAVE_SETEGID) || _POSIX_SAVED_IDS +#if defined(HAVE_SETRESGID) || defined(HAVE_SETEGID) || defined(_POSIX_SAVED_IDS) return Qtrue; #else return Qfalse; @@ -2067,7 +2067,7 @@ p_gid_switch(obj) gid = getgid(); egid = getegid(); -#if defined(HAVE_SETRESGID) || defined(HAVE_SETEGID) || _POSIX_SAVED_IDS +#if defined(HAVE_SETRESGID) || defined(HAVE_SETEGID) || defined(_POSIX_SAVED_IDS) if (gid != egid) { proc_setegid(obj, INT2FIX(gid)); if (rb_block_given_p()) {