Most likely he has a bacterial infection in the eyes, so it should see a vet. The fact that it is still eating is a good sign, but don't wait too long to get him treated.