Commit 5fa3c391 authored by Tomoyuki Sahara's avatar Tomoyuki Sahara

variables are not used on the platforms lack FD_CLOEXEC.

parent 6c4d3941
...@@ -128,9 +128,9 @@ mrb_io_flags_to_modenum(mrb_state *mrb, int flags) ...@@ -128,9 +128,9 @@ mrb_io_flags_to_modenum(mrb_state *mrb, int flags)
void void
mrb_fd_cloexec(mrb_state *mrb, int fd) mrb_fd_cloexec(mrb_state *mrb, int fd)
{ {
#if defined(F_GETFD) && defined(F_SETFD) && defined(FD_CLOEXEC)
int flags, flags2; int flags, flags2;
#if defined(F_GETFD) && defined(F_SETFD) && defined(FD_CLOEXEC)
flags = fcntl(fd, F_GETFD); flags = fcntl(fd, F_GETFD);
if (flags == -1) { if (flags == -1) {
mrb_sys_fail(mrb, "fcntl"); mrb_sys_fail(mrb, "fcntl");
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment