variables are not used on the platforms lack FD_CLOEXEC.

This commit is contained in:
Tomoyuki Sahara
2015-08-27 09:56:17 +09:00
parent 6c4d39412f
commit 5fa3c39145
+1 -1
View File
@@ -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");