How to make and apply a patch?

To make a patch:

diff -urN file.old file.new > file.patch

You may need to modify the first line of the patch to match the actual file name.

To apply a patch:

patch -b < file.patch

For more information see this article.