aboutsummaryrefslogtreecommitdiff
path: root/gcc/fixincludes
diff options
context:
space:
mode:
authorDoug Evans <dje@gnu.org>1993-09-29 21:25:02 +0000
committerDoug Evans <dje@gnu.org>1993-09-29 21:25:02 +0000
commit94e21bd7ba9261f5ec55a55559c5f73fc51e680f (patch)
tree222fea979a7c856ef51c2cd3488d0e77e8094571 /gcc/fixincludes
parent85cc7011a5cce9bc8c478555f4f4fce5a3ae015c (diff)
downloadgcc-94e21bd7ba9261f5ec55a55559c5f73fc51e680f.zip
gcc-94e21bd7ba9261f5ec55a55559c5f73fc51e680f.tar.gz
gcc-94e21bd7ba9261f5ec55a55559c5f73fc51e680f.tar.bz2
fixincludes (sys/spinlock.h): change references of "../machine/*.h" to <machine/*.h>
* fixincludes (sys/spinlock.h): change references of "../machine/*.h" to <machine/*.h> From-SVN: r5531
Diffstat (limited to 'gcc/fixincludes')
-rwxr-xr-xgcc/fixincludes17
1 files changed, 17 insertions, 0 deletions
diff --git a/gcc/fixincludes b/gcc/fixincludes
index 313690f..b28f879 100755
--- a/gcc/fixincludes
+++ b/gcc/fixincludes
@@ -459,6 +459,23 @@ sed -e '/[ ]size_t.*;/i\
fi
fi
+# Fix HP's use of ../machine/inline.h to refer to
+# /usr/include/machine/inline.h
+file=sys/spinlock.h
+if [ ! -r ${LIB}/$file ] ; then
+ cp $file ${LIB}/$file
+fi
+if [ -r ${LIB}/$file ] ; then
+ echo Fixing $file
+ sed -e 's,"../machine/inline.h",<machine/inline.h>,' \
+ -e 's,"../machine/psl.h",<machine/psl.h>,' \
+ ${LIB}/$file > ${LIB}/${file}.sed
+ rm -f ${LIB}/$file; mv ${LIB}/${file}.sed ${LIB}/$file
+ if cmp $file ${LIB}/$file >/dev/null 2>&1; then
+ rm ${LIB}/$file
+ fi
+fi
+
# Fix an error in this file: the #if says _cplusplus, not the double
# underscore __cplusplus that it should be
file=tinfo.h