The Ornstein-Zernike equation for a fluid in contact with a surface