Followup to d446cff, missing #ifdefs to support building w/o IPv6.