mirror of
https://github.com/mruby/mruby
synced 2026-06-08 16:11:16 +00:00
variables are not used on the platforms lack FD_CLOEXEC.
This commit is contained in:
@@ -128,9 +128,9 @@ mrb_io_flags_to_modenum(mrb_state *mrb, int flags)
|
||||
void
|
||||
mrb_fd_cloexec(mrb_state *mrb, int fd)
|
||||
{
|
||||
#if defined(F_GETFD) && defined(F_SETFD) && defined(FD_CLOEXEC)
|
||||
int flags, flags2;
|
||||
|
||||
#if defined(F_GETFD) && defined(F_SETFD) && defined(FD_CLOEXEC)
|
||||
flags = fcntl(fd, F_GETFD);
|
||||
if (flags == -1) {
|
||||
mrb_sys_fail(mrb, "fcntl");
|
||||
|
||||
Reference in New Issue
Block a user