Fix NOINET6 build broken by 2fe5a79425c7.
Reported by: mjg
(cherry picked from commit a4513bace0e0c38d38b0c49c1daea60f2741d781)