diff options
author | usa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2012-10-12 04:31:48 +0000 |
---|---|---|
committer | usa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2012-10-12 04:31:48 +0000 |
commit | 30fbe3a93110447a79c2a4e0ded3a17d0a5251b0 (patch) | |
tree | 7b92a2500df6c406838ebd77e16eca38d3f4ffe5 | |
parent | 226689a2e889a1d6ad49f13ab1f132370cb7dd0d (diff) |
* io.c (rb_cloexec_fcntl_dupfd): get rid of compile error on windows.
reported by Donovan Lampa at [ruby-core:43152] [Backport #6127],
based on a patch by Hiroshi Shirosaki at [ruby-core:47917].
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_3@37150 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r-- | ChangeLog | 6 | ||||
-rw-r--r-- | io.c | 5 | ||||
-rw-r--r-- | version.h | 2 |
3 files changed, 11 insertions, 2 deletions
@@ -1,3 +1,9 @@ +Fri Oct 12 13:28:37 2012 NAKAMURA Usaku <usa@ruby-lang.org> + + * io.c (rb_cloexec_fcntl_dupfd): get rid of compile error on windows. + reported by Donovan Lampa at [ruby-core:43152] [Backport #6127], + based on a patch by Hiroshi Shirosaki at [ruby-core:47917]. + Fri Oct 12 00:30:17 2012 KOSAKI Motohiro <kosaki.motohiro@gmail.com> * io.c (ioctl_narg_len, linux_iocparm_len): reinstantiate linux @@ -209,8 +209,11 @@ rb_cloexec_fcntl_dupfd(int fd, int minfd) else { ret = fcntl(fd, F_DUPFD, minfd); } -#else +#elif defined(F_DUPFD) ret = fcntl(fd, F_DUPFD, minfd); +#else + ret = -1; + errno = EINVAL; #endif if (ret == -1) return -1; rb_maygvl_fd_fix_cloexec(ret); @@ -1,5 +1,5 @@ #define RUBY_VERSION "1.9.3" -#define RUBY_PATCHLEVEL 279 +#define RUBY_PATCHLEVEL 280 #define RUBY_RELEASE_DATE "2012-10-12" #define RUBY_RELEASE_YEAR 2012 |