From d2f782d27b07a451c40aab9f3c261c34016fe026 Mon Sep 17 00:00:00 2001 From: Richard Stallman Date: Sat, 28 Mar 1992 21:38:00 +0000 Subject: [PATCH] *** empty log message *** From-SVN: r614 --- gcc/fixinc.svr4 | 41 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) diff --git a/gcc/fixinc.svr4 b/gcc/fixinc.svr4 index 8ba925dfdf7..b943302dd15 100755 --- a/gcc/fixinc.svr4 +++ b/gcc/fixinc.svr4 @@ -319,6 +319,47 @@ EOF rm -f /tmp/$base fi +# Likewise fix the definition of NULL in so that it is conditional +# and so that it is correct for both C and C++. + +file=dbm.h +base=`basename $file` +if [ -r ${LIB}/$file ]; then + file_to_fix=${LIB}/$file +else + if [ -r ${INPUT}/$file ]; then + file_to_fix=${INPUT}/$file + else + file_to_fix="" + fi +fi +if [ \! -z "$file_to_fix" ]; then + echo Checking $file_to_fix + cp $file_to_fix /tmp/$base + chmod +w /tmp/$base + ex /tmp/$base </dev/null 2>&1; then \ + echo No change needed in $file_to_fix + else + echo Fixed $file_to_fix + rm -f ${LIB}/$file + cp /tmp/$base ${LIB}/$file + fi + rm -f /tmp/$base +fi + # Add some missing declarations to . file=sys/mman.h -- 2.30.2