diff options
-rw-r--r-- | tools/termios_linux.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/tools/termios_linux.h b/tools/termios_linux.h index d73989b625a..e100c8e4eb5 100644 --- a/tools/termios_linux.h +++ b/tools/termios_linux.h @@ -90,7 +90,11 @@ static inline int tcflush(int fd, int q) static inline int tcsendbreak(int fd, int d) { - return ioctl(fd, TCSBRK, d); +#ifdef TCSBRKP + return ioctl(fd, TCSBRKP, d); +#else + return ioctl(fd, TCSBRK, 0); +#endif } static inline int tcflow(int fd, int a) |