patch -p1 < patch-name.diff
if it fails, open the .rej files that come in the error output, look for the - and + lines and change accordingly.
- Something something
means you need to remove that line
+ This thing that thing
means you need to add that line
Sometimes it can be like this
- Something a b c
+ Something a b c d
so just add d in front.
And then recompile once you are sure all patches are done