When the terrain favors neither side, it is down to the disposition of forces in the battle line to prevent flanking attacks.
When neither side benefits from the ground layout, it is the positioning of forces on the battlefield that stops flank assaults.