summaryrefslogtreecommitdiff
path: root/rubysig.h
diff options
context:
space:
mode:
authormatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2004-01-03 17:08:20 +0000
committermatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2004-01-03 17:08:20 +0000
commitd35743aa00945aaaafd61f01daf0f32cf5e84cc8 (patch)
tree67295c1e35efdcfe3412f73f6bb9f8e9eec1af83 /rubysig.h
parent88fb246cc7944b7feb5585a4f4ac3248df4b7770 (diff)
* rubysig.h: lack of variable declaration on _WIN32 platforms.
(ruby-bugs-ja PR#583) git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5368 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'rubysig.h')
-rw-r--r--rubysig.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/rubysig.h b/rubysig.h
index 5b8ea45863e..650770d5778 100644
--- a/rubysig.h
+++ b/rubysig.h
@@ -23,6 +23,7 @@ typedef LONG rb_atomic_t;
/* Windows doesn't allow interrupt while system calls */
# define TRAP_BEG do {\
+ int saved_errno = 0;\
extern int errno;\
rb_atomic_t trap_immediate = ATOMIC_SET(rb_trap_immediate, 1)
# define TRAP_END\