Commit e03bb072 by Richard Stallman

(sys/spinlock.h): Don't copy it if it doesn't exist.

(DPS/XDPSlib.h): Change "XDPS.h" to <DPS/XDPS.h>, for AIX.

From-SVN: r5701
parent 0ef87f39
...@@ -462,7 +462,7 @@ fi ...@@ -462,7 +462,7 @@ fi
# Fix HP's use of ../machine/inline.h to refer to # Fix HP's use of ../machine/inline.h to refer to
# /usr/include/machine/inline.h # /usr/include/machine/inline.h
file=sys/spinlock.h file=sys/spinlock.h
if [ ! -r ${LIB}/$file ] ; then if [ -r $file ] && [ ! -r ${LIB}/$file ]; then
cp $file ${LIB}/$file cp $file ${LIB}/$file
fi fi
if [ -r ${LIB}/$file ] ; then if [ -r ${LIB}/$file ] ; then
...@@ -476,6 +476,20 @@ if [ -r ${LIB}/$file ] ; then ...@@ -476,6 +476,20 @@ if [ -r ${LIB}/$file ] ; then
fi fi
fi fi
# Fix AIX use of "XDPS.h" to refer to <DPS/XDPS.h>
file=DPS/XDPSlib.h
if [-r $file] && [ ! -r ${LIB}/$file ] ; then
cp $file ${LIB}/$file
fi
if [ -r ${LIB}/$file ] ; then
echo Fixing $file
sed -e 's,"XDPS.h",<DPS/XDPS.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 # Fix an error in this file: the #if says _cplusplus, not the double
# underscore __cplusplus that it should be # underscore __cplusplus that it should be
file=tinfo.h file=tinfo.h
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment