Skip to content

Commit

Permalink
Fixed problems with undefined _O_TEXT and linking math libraries
Browse files Browse the repository at this point in the history
  • Loading branch information
Marshall Lochbaum committed Feb 3, 2012
1 parent 3827ef6 commit ae0d7b8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 1 addition & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,7 @@ set(libtsdll_SRCS
tsdll.c)

if(UNIX)
set(jconsole_LIBS
m)
link_libraries(m)
endif()

if(NOT DATA_INSTALL_PREFIX)
Expand Down
3 changes: 3 additions & 0 deletions jconsole.c
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,10 @@ int main(int argc, char* argv[])
type=0;
addargv(argc,argv,input+strlen(input));
#ifndef READLINE
// _O_TEXT may not be defined on non-VC++ systems
#ifdef _O_TEXT
_setmode( _fileno( stdin ), _O_TEXT ); //readline filters '\r' (so does this)
#endif
#endif
jefirst(type,input);
while(1){jedo(Jinput(jt," "));}
Expand Down

0 comments on commit ae0d7b8

Please sign in to comment.