From c922e5bf02a4d57544fab7331bfd6900cce830ce Mon Sep 17 00:00:00 2001 From: rms Date: Sat, 25 Jul 1992 08:34:46 +0000 Subject: [PATCH] (X11/Xmu/Xmu.h): Fix this or X11/Xmu.h, whichever exists. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@1686 138bc75d-0d04-0410-961f-82ee72b054a4 --- gcc/fixincludes | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/gcc/fixincludes b/gcc/fixincludes index efab8c2..eecc3dd 100755 --- a/gcc/fixincludes +++ b/gcc/fixincludes @@ -420,6 +420,31 @@ EOF fi fi +# Incorrect sprintf declaration in X11/Xmu/Xmu.h +# (It's not clear whether the right file name is this or X11/Xmu.h.) +file=X11/Xmu/Xmu.h +if [ -r $file ] && [ ! -r ${LIB}/$file ]; then + mkdir ${LIB}/X11/Xmu 2>/dev/null + cp $file ${LIB}/$file >/dev/null 2>&1 || echo "Can't copy $file" + chmod +w ${LIB}/$file 2>/dev/null +fi + +if [ -r ${LIB}/$file ]; then + echo Fixing $file sprintf declaration + ex ${LIB}/$file </dev/null 2>&1; then + echo Deleting ${LIB}/$file\; no fixes were needed. + rm ${LIB}/$file + fi +fi + # Check for missing ';' in struct file=netinet/ip.h if [ -r $file ] && [ ! -r ${LIB}/$file ]; then -- 2.7.4