Shouldn't this entire ifdef be in Port?