be necessary
Todo el tiempo que haga falta.
For as long as it takes.
Viviré en su despacho el tiempo que haga falta.
I'll live in your office for as long as it takes.
Se te dará información cuando haga falta.
You will be given information when needed.
La pelea durará cuanto haga falta.
The fight will last as long as necessary.
— El club de la lucha (1999)