0001-ext-fcntl-fcntl.c-add-F_DUPFD_CLOEXEC-constant.patch

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

Download (1.08 KB)

View differences:

ext/fcntl/fcntl.c
31 31

  
32 32
************************************************/
33 33

  
34
#define _POSIX_C_SOURCE 200809L
34 35
#include "ruby.h"
35 36
#include <fcntl.h>
36 37

  
......
116 117
#ifdef F_DUPFD
117 118
    rb_define_const(mFcntl, "F_DUPFD", INT2NUM(F_DUPFD));
118 119
#endif
120
#ifdef F_DUPFD_CLOEXEC
121
    rb_define_const(mFcntl, "F_DUPFD_CLOEXEC", INT2NUM(F_DUPFD_CLOEXEC));
122
#endif
119 123
#ifdef F_GETFD
120 124
    rb_define_const(mFcntl, "F_GETFD", INT2NUM(F_GETFD));
121 125
#endif
122
-