#! /bin/sh -e # All lines beginning with `# DPATCH:' are a description of the patch. # DP: dir= if [ $# -eq 3 -a "$2" = '-d' ]; then pdir="-d $3" dir="$3/" elif [ $# -ne 1 ]; then echo >&2 "`basename $0`: script expects -patch|-unpatch as argument" exit 1 fi case "$1" in -patch) patch $pdir -f --no-backup-if-mismatch -p0 < $0 #cd ${dir}gcc && autoconf ;; -unpatch) patch $pdir -f --no-backup-if-mismatch -R -p0 < $0 #rm ${dir}gcc/configure ;; *) echo >&2 "`basename $0`: script expects -patch|-unpatch as argument" exit 1 esac exit 0 # append the patch here and adjust the -p? flag in the patch calls. --- gcc/fix-header.c~ 2007-04-24 06:11:37.000000000 +0900 +++ gcc/fix-header.c 2007-04-24 06:11:49.000000000 +0900 @@ -666,7 +666,7 @@ exit (FATAL_EXIT_CODE); register_include_chains (scan_in, NULL /* sysroot */, NULL /* iprefix */, - true /* stdinc */, false /* cxx_stdinc */, + 0 , true /* stdinc */, false /* cxx_stdinc */, false /* verbose */); /* We are scanning a system header, so mark it as such. */