Skip to content

Commit

Permalink
Try to fix repl test on linux
Browse files Browse the repository at this point in the history
  • Loading branch information
Keno committed May 24, 2014
1 parent c64db18 commit 448889e
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 1 deletion.
1 change: 1 addition & 0 deletions base/fs.jl
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ export File,
JL_O_SHORT_LIVED,
JL_O_SEQUENTIAL,
JL_O_RANDOM,
JL_O_NOCTTY,
S_IRUSR, S_IWUSR, S_IXUSR, S_IRWXU,
S_IRGRP, S_IWGRP, S_IXGRP, S_IRWXG,
S_IROTH, S_IWOTH, S_IXOTH, S_IRWXO
Expand Down
3 changes: 3 additions & 0 deletions src/file_constants.h
Original file line number Diff line number Diff line change
Expand Up @@ -21,3 +21,6 @@ const JL_O_SEQUENTIAL = O_SEQUENTIAL
#ifdef O_RANDOM
const JL_O_RANDOM = O_RANDOM
#endif
#ifdef O_NOCTTY
const JL_O_NOCTTY = O_NOCTTY
#endif
2 changes: 1 addition & 1 deletion test/repl.jl
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ let exename=joinpath(JULIA_HOME,(ccall(:jl_is_debugbuild,Cint,())==0?"julia":"ju
@unix_only begin

const O_RDWR = Base.FS.JL_O_RDWR
const O_NOCTTY = 0x20000
const O_NOCTTY = Base.FS.JL_O_NOCTTY

fdm = ccall(:posix_openpt,Cint,(Cint,),O_RDWR|O_NOCTTY)
fdm == -1 && error("Failed to open PTY master")
Expand Down

0 comments on commit 448889e

Please sign in to comment.