Porting: Fix smd_tty.c (based on 0ef1a1e6bfe0a5d64b68e7974489de6a3c5abad8)