From 12b8ff1f464e86df401ccc7b532a0e0074f0babb Mon Sep 17 00:00:00 2001 From: kosaki Date: Mon, 20 Dec 2010 15:40:07 +0000 Subject: [PATCH] * error.c: Fix build error for win32. This regression was introduced by r30271. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30277 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- ChangeLog | 5 +++++ error.c | 8 ++++++++ 2 files changed, 13 insertions(+) diff --git a/ChangeLog b/ChangeLog index cf78804c5d..33d8882c0f 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +Tue Dec 21 01:18:06 2010 KOSAKI Motohiro + + * error.c: Fix build error for win32. This regression was + introduced by r30271. + Tue Dec 21 00:59:40 2010 KOSAKI Motohiro * thread.c (thread_cleanup_func): Moved interrupted_lock diff --git a/error.c b/error.c index d54f43c539..7c9e22b9ed 100644 --- a/error.c +++ b/error.c @@ -25,6 +25,14 @@ #define EXIT_SUCCESS 0 #endif +#ifndef WIFEXITED +#define WIFEXITED(status) 1 +#endif + +#ifndef WEXITSTATUS +#define WEXITSTATUS(status) (status) +#endif + extern const char ruby_description[]; static const char *