+# Patch files in /usr/src/sys/sys
+
+for f in ttycom.h ; do
+ dest=$SYS/sys/$f
+ patch=$SRC/patch.$f
+ if [ -f $dest ]; then
+ echo -n "Patching $dest..."
+ if patch -s -C -N $dest < $patch 2> /dev/null; then
+ patch -s -N $dest < $patch
+ echo "successful."
+ DOMAKE=yes
+ else
+ if patch -s -C -R $dest < $patch 2> /dev/null; then
+ echo "already applied."
+ else
+ echo "failed (incorrect version or already applied)."
+ fi
+ fi
+ else
+ echo "Warning, file $dest not found"
+ fi
+done
+
+# Patch files in /usr/include/net
+