diff options
author | Ian Lance Taylor <ian@gcc.gnu.org> | 1994-02-22 16:01:26 +0000 |
---|---|---|
committer | Ian Lance Taylor <ian@gcc.gnu.org> | 1994-02-22 16:01:26 +0000 |
commit | 43b8af688cc9b894dc88ccdae34c81256d96beb4 (patch) | |
tree | d551ba6484c8e98bd758bc028db77ae4e6a487da /gcc | |
parent | 45a2f71a7840c52e69bdb86e2daeafcae3349d9b (diff) | |
download | gcc-43b8af688cc9b894dc88ccdae34c81256d96beb4.zip gcc-43b8af688cc9b894dc88ccdae34c81256d96beb4.tar.gz gcc-43b8af688cc9b894dc88ccdae34c81256d96beb4.tar.bz2 |
Fix prototype declaration of utime in <sys/times.h>.
From-SVN: r6608
Diffstat (limited to 'gcc')
-rwxr-xr-x | gcc/fixinc.sco | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/gcc/fixinc.sco b/gcc/fixinc.sco index 4711c03..97699a1 100755 --- a/gcc/fixinc.sco +++ b/gcc/fixinc.sco @@ -246,6 +246,24 @@ if [ -r ${LIB}/$file ]; then fi fi +# Fix prototype declaration of utime in sys/times.h. In 3.2v4.0 the +# const is missing. +file=sys/times.h +if [ -r $file ] && [ ! -r ${LIB}/$file ]; then + cp $file ${LIB}/$file >/dev/null 2>&1 || echo "Can't copy $file" + chmod +w ${LIB}/$file 2>/dev/null + chmod a+r ${LIB}/$file 2>/dev/null +fi + +if [ -r ${LIB}/$file ]; then + echo Fixing $file, utime prototype + sed -e 's/(const char \*, struct utimbuf \*);/(const char *, const struct utimbuf *);/' ${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 + echo 'Removing unneeded directories:' cd $LIB files=`find . -type d -print | sort -r` |