Use tcflush(3) instead of (nonstandard) TIOCFLUSH.
Reported by: kib MFC after: 2 weeks Sponsored by: DARPA, AFRL