Skip to content
Browse files

Always define NOCTTY since it's not defining propertly on Linux.

See #1853.
  • Loading branch information...
1 parent e2438a9 commit ad1d686d057f13d1fd431463e33ddf335d2b9fca @headius headius committed Jul 24, 2014
Showing with 3 additions and 2 deletions.
  1. +3 −2 core/src/main/java/org/jruby/RubyFile.java
View
5 core/src/main/java/org/jruby/RubyFile.java
@@ -146,10 +146,11 @@ public static RubyClass createFileClass(Ruby runtime) {
}
/* truncate size to 0 */
constants.setConstant("TRUNC", runtime.newFixnum(OpenFlags.O_TRUNC.intValue()));
- if (OpenFlags.O_NOCTTY.defined()) {
+ // FIXME: NOCTTY is showing up as undefined on Linux, but it should be defined.
+// if (OpenFlags.O_NOCTTY.defined()) {
/* not to make opened IO the controlling terminal device */
constants.setConstant("NOCTTY", runtime.newFixnum(OpenFlags.O_NOCTTY.intValue()));
- }
+// }
if (!OpenFlags.O_BINARY.defined()) {
constants.setConstant("BINARY", runtime.newFixnum(0));
} else {

0 comments on commit ad1d686

Please sign in to comment.
Something went wrong with that request. Please try again.