Fix ttyname problem on Android.