diff options
Diffstat (limited to 'error.c')
-rw-r--r-- | error.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -1187,12 +1187,12 @@ set_syserr(int n, const char *name) if (!st_lookup(syserr_tbl, n, &error)) { error = rb_define_class_under(rb_mErrno, name, rb_eSystemCallError); - + /* capture nonblock errnos for WaitReadable/WaitWritable subclasses */ switch (n) { case EAGAIN: rb_eEAGAIN = error; - + #if EAGAIN != EWOULDBLOCK break; case EWOULDBLOCK: @@ -1204,7 +1204,7 @@ set_syserr(int n, const char *name) rb_eEINPROGRESS = error; break; } - + rb_define_const(error, "Errno", INT2NUM(n)); st_add_direct(syserr_tbl, n, error); } |