The equilibrium of a rotating star