A few ways. easiest was probably just picking the correct film - there are/were specific emulsions for tungsten lighting. Other than that, either a colour temperature meter or experience and filtration to correct at the taking stage. Finally, a certain amount of correction can be done at the printing stage.