patch -b -p0 < filename.patch
If it doesn't work (you'll see "failed at hunk" messages), you'll have to do it by hand. Open the patch file, and locate the affected lines. The ! means lines have been replaced (the top section of a group of lines is the "old" version, the bottom section is the "new" version), + means they've been added, and -, deleted.