Integral equation for classical fluids and the lattice gas