# cd /usr/src
# patch < /root/patch-1.diff
Hmm... Looks like a unified diff to me...
The text leading up to this was:
--------------------------
|Index: if_ndis.c
|===================================================================
|RCS file: /data/ndis/if_ndis/if_ndis.c,v
|retrieving revision 1.1.1.1
|diff -u -r1.1.1.1 if_ndis.c
|--- if_ndis.c 1 Dec 2007 06:23:58 -0000 1.1.1.1
|+++ if_ndis.c 1 Dec 2007 07:34:01 -0000
--------------------------
File to patch: /sys/dev/if_ndis/if_ndis.c
Patching file /sys/dev/if_ndis/if_ndis.c using Plan A...
Hunk #1 failed at 2629.
Hunk #2 failed at 3073.
Hunk #3 failed at 3580.
3 out of 3 hunks failed--saving rejects to /sys/dev/if_ndis/if_ndis.c.rej
Hmm... The next patch looks like a unified diff to me...
The text leading up to this was:
--------------------------
|
|
|Patch attached with submission follows:
|
|Index: if_ndis.c
|===================================================================
|RCS file: /data/ndis/if_ndis/if_ndis.c,v
|retrieving revision 1.1.1.1
|diff -u -r1.1.1.1 if_ndis.c
|--- if_ndis.c 1 Dec 2007 06:23:58 -0000 1.1.1.1
|+++ if_ndis.c 1 Dec 2007 07:34:01 -0000
--------------------------
File to patch: /sys/dev/if_ndis/if_ndis.c
Patching file /sys/dev/if_ndis/if_ndis.c using Plan A...
Hunk #1 failed at 2629.
Hunk #2 failed at 3073.
Hunk #3 failed at 3580.
3 out of 3 hunks failed--saving rejects to /sys/dev/if_ndis/if_ndis.c.rej
Hmm... Ignoring the trailing garbage.
done
#