in the patch file you should see how the diff was made,
diff -r -c xpilot-4.1.0_orig/src/ xpilot-4.1.0/src/ > patchfile
or
diff -w -r -c xpilot-4.1.0_orig/src/ xpilot-4.1.0/src/ > patchfile
the former is a recursive (-r) context (-c) diff, which is easy to read,
the latter additionally doesn't pay attention to differences in
whitespaces (-w)
cd xpilot-4.1.0/
patch -p1 -i patchfilefor the former diff or
patch -l -p1 -i patchfilefor the latter, applying loose (-l) according to whitespaces.