Revision: 71865 http://sourceforge.net/p/brlcad/code/71865 Author: starseeker Date: 2018-09-26 22:07:10 +0000 (Wed, 26 Sep 2018) Log Message: ----------- Looks like newer FreeBSD versions don't support these modes - see https://github.com/haskell/unix/issues/102
Modified Paths: -------------- brlcad/trunk/src/libtermio/termio.c Modified: brlcad/trunk/src/libtermio/termio.c =================================================================== --- brlcad/trunk/src/libtermio/termio.c 2018-09-26 21:55:44 UTC (rev 71864) +++ brlcad/trunk/src/libtermio/termio.c 2018-09-26 22:07:10 UTC (rev 71865) @@ -35,6 +35,7 @@ # if !defined(OCRNL) # define OCRNL 0000010 # endif + #endif #include "bio.h" @@ -345,12 +346,16 @@ (void) ioctl(fd, TIOCSETP, &curr_tio[fd]); #endif #ifdef SYSV +# if !defined(__FreeBSD__) curr_tio[fd].c_oflag &= ~(ONLCR|OCRNL); +# endif curr_tio[fd].c_iflag &= ~(ICRNL|INLCR); (void) ioctl(fd, TCSETA, &curr_tio[fd]); #endif #ifdef HAVE_TERMIOS_H +# if !defined(__FreeBSD__) curr_tio[fd].c_oflag &= ~(ONLCR|OCRNL); +# endif curr_tio[fd].c_iflag &= ~(ICRNL|INLCR); (void)tcsetattr(fd, TCSAFLUSH, &curr_tio[fd]); #endif This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. _______________________________________________ BRL-CAD Source Commits mailing list brlcad-commits@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/brlcad-commits