[tor-commits] [tor/master] Add compatibility function for fgets(3).