Project

General

Profile

Feature #4512 » 0001-ext-fcntl-fcntl.c-add-F_DUPFD_CLOEXEC-constant.patch

patch to add constant - normalperson (Eric Wong), 03/20/2011 01:00 PM

View differences:

ext/fcntl/fcntl.c
************************************************/
#define _POSIX_C_SOURCE 200809L
#include "ruby.h"
#include <fcntl.h>
......
#ifdef F_DUPFD
rb_define_const(mFcntl, "F_DUPFD", INT2NUM(F_DUPFD));
#endif
#ifdef F_DUPFD_CLOEXEC
rb_define_const(mFcntl, "F_DUPFD_CLOEXEC", INT2NUM(F_DUPFD_CLOEXEC));
#endif
#ifdef F_GETFD
rb_define_const(mFcntl, "F_GETFD", INT2NUM(F_GETFD));
#endif
(1-1/2)