(c)Where a footway passes close to a building or other obstruction as it approaches a railway track; a barrier or a turngate shall be fixed in such a manner that a person approaching the track is compelled to move away from the building or obstruction and thus obtain timely sight of an approaching locomotive or wagon.