From e3385f87831f036eaba96558cb4d83c8d5c43901 Mon Sep 17 00:00:00 2001 From: Nobuyoshi Nakada Date: Fri, 12 May 2023 10:48:35 +0900 Subject: [Bug #19635] Preserve `errno` The following functions are turned into macros and no longer can be used as expressions in core. - rb_sys_fail - rb_sys_fail_str - rb_sys_fail_path --- error.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'error.c') diff --git a/error.c b/error.c index 3d44b6671b..cb954dbf9e 100644 --- a/error.c +++ b/error.c @@ -3312,12 +3312,14 @@ rb_syserr_fail_str(int e, VALUE mesg) rb_exc_raise(rb_syserr_new_str(e, mesg)); } +#undef rb_sys_fail void rb_sys_fail(const char *mesg) { rb_exc_raise(make_errno_exc(mesg)); } +#undef rb_sys_fail_str void rb_sys_fail_str(VALUE mesg) { -- cgit v1.2.1