Something like,
patch -p0 < foo.patch
or with git type diffs,
patch -p1 < foo.patch
There's also the dry-run option to see if it'll work depending on the -p option and the binary option if you need to preserve eg *nix line breaks,
patch -p0 --binary --dry-run < foo.patch