darwin: add missing endif directive