add typedef patch