Commit dafb9c66 by Kaveh R. Ghazi Committed by Kaveh Ghazi

fixinc.irix: Use unique filenames for writing into /tmp,

        * fixinc.irix: Use unique filenames for writing into /tmp,
        * fixinc.ptx: Likewise.
        * fixinc.sco: Likewise.
        * fixinc.svr4: Likewise.
        * fixinc.winnt: Likewise.

From-SVN: r31742
parent 2e39bdbe
2000-02-01 Kaveh R. Ghazi <ghazi@caip.rutgers.edu> 2000-02-01 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
* fixinc.irix: Use unique filenames for writing into /tmp,
* fixinc.ptx: Likewise.
* fixinc.sco: Likewise.
* fixinc.svr4: Likewise.
* fixinc.winnt: Likewise.
2000-02-01 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
* tsystem.h: New file. * tsystem.h: New file.
* Makefile.in (libgcc2.a, stmp-multilib, crtbegin.o, crtend.o, * Makefile.in (libgcc2.a, stmp-multilib, crtbegin.o, crtend.o,
......
...@@ -142,7 +142,7 @@ fi ...@@ -142,7 +142,7 @@ fi
# in float.h to avoid redefinition errors if float.h is included first. # in float.h to avoid redefinition errors if float.h is included first.
file=limits.h file=limits.h
base=`basename $file` base=`basename $file`.$$
if [ -r ${LIB}/$file ]; then if [ -r ${LIB}/$file ]; then
file_to_fix=${LIB}/$file file_to_fix=${LIB}/$file
else else
...@@ -204,7 +204,7 @@ fi ...@@ -204,7 +204,7 @@ fi
# The Irix unistd.h will introduce a call to __vfork in its libc, but the # The Irix unistd.h will introduce a call to __vfork in its libc, but the
# function is never actually prototyped. # function is never actually prototyped.
file=unistd.h file=unistd.h
base=`basename $file` base=`basename $file`.$$
if [ -r ${LIB}/$file ]; then if [ -r ${LIB}/$file ]; then
file_to_fix=${LIB}/$file file_to_fix=${LIB}/$file
else else
...@@ -236,7 +236,7 @@ done ...@@ -236,7 +236,7 @@ done
# This is for ANSI and also to interoperate properly with gcc's varargs.h. # This is for ANSI and also to interoperate properly with gcc's varargs.h.
# Arrange for stdio.h to use stdarg.h to define __gnuc_va_list # Arrange for stdio.h to use stdarg.h to define __gnuc_va_list
file=stdio.h file=stdio.h
base=`basename $file` base=`basename $file`.$$
if [ -r ${LIB}/$file ]; then if [ -r ${LIB}/$file ]; then
file_to_fix=${LIB}/$file file_to_fix=${LIB}/$file
else else
......
...@@ -118,7 +118,7 @@ fi ...@@ -118,7 +118,7 @@ fi
# In pwd.h, PTX 1.x needs stdio.h included since FILE * was added in a # In pwd.h, PTX 1.x needs stdio.h included since FILE * was added in a
# prototype later on in the file. # prototype later on in the file.
file=pwd.h file=pwd.h
base=`basename $file` base=`basename $file`.$$
if [ -r ${LIB}/$file ]; then if [ -r ${LIB}/$file ]; then
file_to_fix=${LIB}/$file file_to_fix=${LIB}/$file
else else
...@@ -173,7 +173,7 @@ fi ...@@ -173,7 +173,7 @@ fi
# include <sys/byteorder.h> written out by the fixinc.svr4 script which has # include <sys/byteorder.h> written out by the fixinc.svr4 script which has
# these same routines written in an asm format supported by gcc. # these same routines written in an asm format supported by gcc.
file=netinet/in.h file=netinet/in.h
base=`basename $file` base=`basename $file`.$$
if [ -r ${LIB}/$file ]; then if [ -r ${LIB}/$file ]; then
file_to_fix=${LIB}/$file file_to_fix=${LIB}/$file
else else
......
...@@ -185,7 +185,7 @@ cd ${INPUT} ...@@ -185,7 +185,7 @@ cd ${INPUT}
# Fix first broken decl of getcwd present on some svr4 systems. # Fix first broken decl of getcwd present on some svr4 systems.
file=stdlib.h file=stdlib.h
base=`basename $file` base=`basename $file`.$$
if [ -r ${LIB}/$file ]; then if [ -r ${LIB}/$file ]; then
file_to_fix=${LIB}/$file file_to_fix=${LIB}/$file
else else
...@@ -213,7 +213,7 @@ fi ...@@ -213,7 +213,7 @@ fi
# fix the incorrect decl of profil present on some svr4 systems. # fix the incorrect decl of profil present on some svr4 systems.
file=unistd.h file=unistd.h
base=`basename $file` base=`basename $file`.$$
if [ -r ${LIB}/$file ]; then if [ -r ${LIB}/$file ]; then
file_to_fix=${LIB}/$file file_to_fix=${LIB}/$file
else else
...@@ -241,7 +241,7 @@ fi ...@@ -241,7 +241,7 @@ fi
# Fix third broken decl of getcwd on SCO. Also fix incorrect decl of # Fix third broken decl of getcwd on SCO. Also fix incorrect decl of
# link. # link.
file=prototypes.h file=prototypes.h
base=`basename $file` base=`basename $file`.$$
if [ -r ${LIB}/$file ]; then if [ -r ${LIB}/$file ]; then
file_to_fix=${LIB}/$file file_to_fix=${LIB}/$file
else else
...@@ -313,7 +313,7 @@ fi ...@@ -313,7 +313,7 @@ fi
# we blow over that one (with C++ linkage) and stick a new one in stdlib.h # we blow over that one (with C++ linkage) and stick a new one in stdlib.h
# with C linkage. So we eat the one out of math.h. # with C linkage. So we eat the one out of math.h.
file=math.h file=math.h
base=`basename $file` base=`basename $file`.$$
if [ -r ${LIB}/$file ]; then if [ -r ${LIB}/$file ]; then
file_to_fix=${LIB}/$file file_to_fix=${LIB}/$file
else else
......
...@@ -267,7 +267,7 @@ done ...@@ -267,7 +267,7 @@ done
# Fix first broken decl of getcwd present on some svr4 systems. # Fix first broken decl of getcwd present on some svr4 systems.
file=stdlib.h file=stdlib.h
base=`basename $file` base=`basename $file`.$$
if [ -r ${LIB}/$file ]; then if [ -r ${LIB}/$file ]; then
file_to_fix=${LIB}/$file file_to_fix=${LIB}/$file
else else
...@@ -295,7 +295,7 @@ fi ...@@ -295,7 +295,7 @@ fi
# fix the incorrect decl of profil present on some svr4 systems. # fix the incorrect decl of profil present on some svr4 systems.
file=unistd.h file=unistd.h
base=`basename $file` base=`basename $file`.$$
if [ -r ${LIB}/$file ]; then if [ -r ${LIB}/$file ]; then
file_to_fix=${LIB}/$file file_to_fix=${LIB}/$file
else else
...@@ -324,7 +324,7 @@ fi ...@@ -324,7 +324,7 @@ fi
# and so that it is correct for both C and C++. # and so that it is correct for both C and C++.
file=sys/param.h file=sys/param.h
base=`basename $file` base=`basename $file`.$$
if [ -r ${LIB}/$file ]; then if [ -r ${LIB}/$file ]; then
file_to_fix=${LIB}/$file file_to_fix=${LIB}/$file
else else
...@@ -363,7 +363,7 @@ fi ...@@ -363,7 +363,7 @@ fi
# and so that it is correct for both C and C++. # and so that it is correct for both C and C++.
file=stdio.h file=stdio.h
base=`basename $file` base=`basename $file`.$$
if [ -r ${LIB}/$file ]; then if [ -r ${LIB}/$file ]; then
file_to_fix=${LIB}/$file file_to_fix=${LIB}/$file
else else
...@@ -399,7 +399,7 @@ fi ...@@ -399,7 +399,7 @@ fi
# and so that it is correct for both C and C++. # and so that it is correct for both C and C++.
file=dbm.h file=dbm.h
base=`basename $file` base=`basename $file`.$$
if [ -r ${LIB}/$file ]; then if [ -r ${LIB}/$file ]; then
file_to_fix=${LIB}/$file file_to_fix=${LIB}/$file
else else
...@@ -436,7 +436,7 @@ fi ...@@ -436,7 +436,7 @@ fi
# Add a prototyped declaration of mmap to <sys/mman.h>. # Add a prototyped declaration of mmap to <sys/mman.h>.
file=sys/mman.h file=sys/mman.h
base=`basename $file` base=`basename $file`.$$
if [ -r ${LIB}/$file ]; then if [ -r ${LIB}/$file ]; then
file_to_fix=${LIB}/$file file_to_fix=${LIB}/$file
else else
...@@ -476,7 +476,7 @@ fi ...@@ -476,7 +476,7 @@ fi
# any of this stuff when on Solaris. # any of this stuff when on Solaris.
file=ftw.h file=ftw.h
base=`basename $file` base=`basename $file`.$$
if [ -r ${LIB}/$file ]; then if [ -r ${LIB}/$file ]; then
file_to_fix=${LIB}/$file file_to_fix=${LIB}/$file
else else
...@@ -537,7 +537,7 @@ fi ...@@ -537,7 +537,7 @@ fi
# Avoid the definition of the bool type in the Solaris 2.x curses.h when using # Avoid the definition of the bool type in the Solaris 2.x curses.h when using
# g++, since it's now an official type in the C++ language. # g++, since it's now an official type in the C++ language.
file=curses.h file=curses.h
base=`basename $file` base=`basename $file`.$$
if [ -r ${LIB}/$file ]; then if [ -r ${LIB}/$file ]; then
file_to_fix=${LIB}/$file file_to_fix=${LIB}/$file
else else
...@@ -573,7 +573,7 @@ fi ...@@ -573,7 +573,7 @@ fi
# such a declaration. # such a declaration.
file=regexp.h file=regexp.h
base=`basename $file` base=`basename $file`.$$
if [ -r ${LIB}/$file ]; then if [ -r ${LIB}/$file ]; then
file_to_fix=${LIB}/$file file_to_fix=${LIB}/$file
else else
...@@ -611,7 +611,7 @@ fi ...@@ -611,7 +611,7 @@ fi
# delete the lines that #define some string functions to internal forms. # delete the lines that #define some string functions to internal forms.
file=string.h file=string.h
base=`basename $file` base=`basename $file`.$$
if [ -r ${LIB}/$file ]; then if [ -r ${LIB}/$file ]; then
file_to_fix=${LIB}/$file file_to_fix=${LIB}/$file
else else
...@@ -644,7 +644,7 @@ fi ...@@ -644,7 +644,7 @@ fi
# (guessing it is necessary for all of them). # (guessing it is necessary for all of them).
file=ieeefp.h file=ieeefp.h
base=`basename $file` base=`basename $file`.$$
if [ -r ${LIB}/$file ]; then if [ -r ${LIB}/$file ]; then
file_to_fix=${LIB}/$file file_to_fix=${LIB}/$file
else else
...@@ -677,7 +677,7 @@ fi ...@@ -677,7 +677,7 @@ fi
# Also fix types of SIG_DFL, SIG_ERR, SIG_IGN, and SIG_HOLD. # Also fix types of SIG_DFL, SIG_ERR, SIG_IGN, and SIG_HOLD.
file=sys/signal.h file=sys/signal.h
base=`basename $file` base=`basename $file`.$$
if [ -r ${LIB}/$file ]; then if [ -r ${LIB}/$file ]; then
file_to_fix=${LIB}/$file file_to_fix=${LIB}/$file
else else
...@@ -709,7 +709,7 @@ fi ...@@ -709,7 +709,7 @@ fi
# Fix declarations of `makedev', `major', and `minor' in <sys/mkdev.h>. # Fix declarations of `makedev', `major', and `minor' in <sys/mkdev.h>.
file=sys/mkdev.h file=sys/mkdev.h
base=`basename $file` base=`basename $file`.$$
if [ -r ${LIB}/$file ]; then if [ -r ${LIB}/$file ]; then
file_to_fix=${LIB}/$file file_to_fix=${LIB}/$file
else else
...@@ -749,7 +749,7 @@ fi ...@@ -749,7 +749,7 @@ fi
# Fix reference to NMSZ in <sys/adv.h>. # Fix reference to NMSZ in <sys/adv.h>.
file=sys/adv.h file=sys/adv.h
base=`basename $file` base=`basename $file`.$$
if [ -r ${LIB}/$file ]; then if [ -r ${LIB}/$file ]; then
file_to_fix=${LIB}/$file file_to_fix=${LIB}/$file
else else
...@@ -777,7 +777,7 @@ fi ...@@ -777,7 +777,7 @@ fi
# array initializers. # array initializers.
file=sys/netcspace.h file=sys/netcspace.h
base=`basename $file` base=`basename $file`.$$
if [ -r ${LIB}/$file ]; then if [ -r ${LIB}/$file ]; then
file_to_fix=${LIB}/$file file_to_fix=${LIB}/$file
else else
...@@ -805,7 +805,7 @@ fi ...@@ -805,7 +805,7 @@ fi
# Conditionalize all of <fs/rfs/rf_cache.h> on _KERNEL being defined. # Conditionalize all of <fs/rfs/rf_cache.h> on _KERNEL being defined.
file=fs/rfs/rf_cache.h file=fs/rfs/rf_cache.h
base=`basename $file` base=`basename $file`.$$
if [ -r ${LIB}/$file ]; then if [ -r ${LIB}/$file ]; then
file_to_fix=${LIB}/$file file_to_fix=${LIB}/$file
else else
...@@ -834,7 +834,7 @@ fi ...@@ -834,7 +834,7 @@ fi
# Conditionalize all of <sys/erec.h> on _KERNEL being defined. # Conditionalize all of <sys/erec.h> on _KERNEL being defined.
file=sys/erec.h file=sys/erec.h
base=`basename $file` base=`basename $file`.$$
if [ -r ${LIB}/$file ]; then if [ -r ${LIB}/$file ]; then
file_to_fix=${LIB}/$file file_to_fix=${LIB}/$file
else else
...@@ -863,7 +863,7 @@ fi ...@@ -863,7 +863,7 @@ fi
# Conditionalize all of <sys/err.h> on _KERNEL being defined. # Conditionalize all of <sys/err.h> on _KERNEL being defined.
file=sys/err.h file=sys/err.h
base=`basename $file` base=`basename $file`.$$
if [ -r ${LIB}/$file ]; then if [ -r ${LIB}/$file ]; then
file_to_fix=${LIB}/$file file_to_fix=${LIB}/$file
else else
...@@ -892,7 +892,7 @@ fi ...@@ -892,7 +892,7 @@ fi
# Conditionalize all of <sys/char.h> on _KERNEL being defined. # Conditionalize all of <sys/char.h> on _KERNEL being defined.
file=sys/char.h file=sys/char.h
base=`basename $file` base=`basename $file`.$$
if [ -r ${LIB}/$file ]; then if [ -r ${LIB}/$file ]; then
file_to_fix=${LIB}/$file file_to_fix=${LIB}/$file
else else
...@@ -921,7 +921,7 @@ fi ...@@ -921,7 +921,7 @@ fi
# Conditionalize all of <sys/getpages.h> on _KERNEL being defined. # Conditionalize all of <sys/getpages.h> on _KERNEL being defined.
file=sys/getpages.h file=sys/getpages.h
base=`basename $file` base=`basename $file`.$$
if [ -r ${LIB}/$file ]; then if [ -r ${LIB}/$file ]; then
file_to_fix=${LIB}/$file file_to_fix=${LIB}/$file
else else
...@@ -950,7 +950,7 @@ fi ...@@ -950,7 +950,7 @@ fi
# Conditionalize all of <sys/map.h> on _KERNEL being defined. # Conditionalize all of <sys/map.h> on _KERNEL being defined.
file=sys/map.h file=sys/map.h
base=`basename $file` base=`basename $file`.$$
if [ -r ${LIB}/$file ]; then if [ -r ${LIB}/$file ]; then
file_to_fix=${LIB}/$file file_to_fix=${LIB}/$file
else else
...@@ -979,7 +979,7 @@ fi ...@@ -979,7 +979,7 @@ fi
# Conditionalize all of <sys/cmn_err.h> on _KERNEL being defined. # Conditionalize all of <sys/cmn_err.h> on _KERNEL being defined.
file=sys/cmn_err.h file=sys/cmn_err.h
base=`basename $file` base=`basename $file`.$$
if [ -r ${LIB}/$file ]; then if [ -r ${LIB}/$file ]; then
file_to_fix=${LIB}/$file file_to_fix=${LIB}/$file
else else
...@@ -1008,7 +1008,7 @@ fi ...@@ -1008,7 +1008,7 @@ fi
# Conditionalize all of <sys/kdebugger.h> on _KERNEL being defined. # Conditionalize all of <sys/kdebugger.h> on _KERNEL being defined.
file=sys/kdebugger.h file=sys/kdebugger.h
base=`basename $file` base=`basename $file`.$$
if [ -r ${LIB}/$file ]; then if [ -r ${LIB}/$file ]; then
file_to_fix=${LIB}/$file file_to_fix=${LIB}/$file
else else
...@@ -1038,7 +1038,7 @@ fi ...@@ -1038,7 +1038,7 @@ fi
# This has been taken out because it breaks on some versions of # This has been taken out because it breaks on some versions of
# DYNIX/ptx, and it does not seem to do much good on any system. # DYNIX/ptx, and it does not seem to do much good on any system.
# file=netinet/in.h # file=netinet/in.h
# base=`basename $file` # base=`basename $file`.$$
# if [ -r ${LIB}/$file ]; then # if [ -r ${LIB}/$file ]; then
# file_to_fix=${LIB}/$file # file_to_fix=${LIB}/$file
# else # else
...@@ -1068,7 +1068,7 @@ fi ...@@ -1068,7 +1068,7 @@ fi
# Conditionalize some of <sys/endian.h> on __GNUC__ and __GNUG__. # Conditionalize some of <sys/endian.h> on __GNUC__ and __GNUG__.
file=sys/endian.h file=sys/endian.h
base=`basename $file` base=`basename $file`.$$
if [ -r ${LIB}/$file ]; then if [ -r ${LIB}/$file ]; then
file_to_fix=${LIB}/$file file_to_fix=${LIB}/$file
else else
...@@ -1101,7 +1101,7 @@ fi ...@@ -1101,7 +1101,7 @@ fi
## In sys/types.h, don't name the enum for booleans. ## In sys/types.h, don't name the enum for booleans.
# #
#file=sys/types.h #file=sys/types.h
#base=`basename $file` #base=`basename $file`.$$
#if [ -r ${LIB}/$file ]; then #if [ -r ${LIB}/$file ]; then
# file_to_fix=${LIB}/$file # file_to_fix=${LIB}/$file
#else #else
...@@ -1126,7 +1126,7 @@ fi ...@@ -1126,7 +1126,7 @@ fi
# <sys/stream.h> and <sys/strsubr.h> # <sys/stream.h> and <sys/strsubr.h>
file=sys/stream.h file=sys/stream.h
base=`basename $file` base=`basename $file`.$$
if [ -r ${LIB}/$file ]; then if [ -r ${LIB}/$file ]; then
file_to_fix=${LIB}/$file file_to_fix=${LIB}/$file
else else
...@@ -1154,7 +1154,7 @@ if [ \! -z "$file_to_fix" ]; then ...@@ -1154,7 +1154,7 @@ if [ \! -z "$file_to_fix" ]; then
fi fi
file=sys/strsubr.h file=sys/strsubr.h
base=`basename $file` base=`basename $file`.$$
if [ -r ${LIB}/$file ]; then if [ -r ${LIB}/$file ]; then
file_to_fix=${LIB}/$file file_to_fix=${LIB}/$file
else else
...@@ -1185,7 +1185,7 @@ fi ...@@ -1185,7 +1185,7 @@ fi
# Put storage class at start of decl, to avoid warning. # Put storage class at start of decl, to avoid warning.
file=rpc/types.h file=rpc/types.h
base=`basename $file` base=`basename $file`.$$
if [ -r ${LIB}/$file ]; then if [ -r ${LIB}/$file ]; then
file_to_fix=${LIB}/$file file_to_fix=${LIB}/$file
else else
...@@ -1214,7 +1214,7 @@ fi ...@@ -1214,7 +1214,7 @@ fi
# Convert functions to prototype form, and fix arg names in <sys/stat.h>. # Convert functions to prototype form, and fix arg names in <sys/stat.h>.
file=sys/stat.h file=sys/stat.h
base=`basename $file` base=`basename $file`.$$
if [ -r ${LIB}/$file ]; then if [ -r ${LIB}/$file ]; then
file_to_fix=${LIB}/$file file_to_fix=${LIB}/$file
else else
...@@ -1282,7 +1282,7 @@ if [ -x /bin/sony ]; then ...@@ -1282,7 +1282,7 @@ if [ -x /bin/sony ]; then
# Change <stdio.h> to not define __filbuf, __flsbuf, and __iob # Change <stdio.h> to not define __filbuf, __flsbuf, and __iob
file=stdio.h file=stdio.h
base=`basename $file` base=`basename $file`.$$
if [ -r ${LIB}/$file ]; then if [ -r ${LIB}/$file ]; then
file_to_fix=${LIB}/$file file_to_fix=${LIB}/$file
else else
...@@ -1316,7 +1316,7 @@ if [ -x /bin/sony ]; then ...@@ -1316,7 +1316,7 @@ if [ -x /bin/sony ]; then
# Change <ctype.h> to not define __ctype # Change <ctype.h> to not define __ctype
file=ctype.h file=ctype.h
base=`basename $file` base=`basename $file`.$$
if [ -r ${LIB}/$file ]; then if [ -r ${LIB}/$file ]; then
file_to_fix=${LIB}/$file file_to_fix=${LIB}/$file
else else
...@@ -1352,7 +1352,7 @@ fi ...@@ -1352,7 +1352,7 @@ fi
# Solaris 2.1 has this problem. # Solaris 2.1 has this problem.
file=limits.h file=limits.h
base=`basename $file` base=`basename $file`.$$
if [ -r ${LIB}/$file ]; then if [ -r ${LIB}/$file ]; then
file_to_fix=${LIB}/$file file_to_fix=${LIB}/$file
else else
...@@ -1437,7 +1437,7 @@ fi ...@@ -1437,7 +1437,7 @@ fi
# specific math-*.h file. # specific math-*.h file.
file=math.h file=math.h
base=`basename $file` base=`basename $file`.$$
if [ -r ${LIB}/$file ]; then if [ -r ${LIB}/$file ]; then
file_to_fix=${LIB}/$file file_to_fix=${LIB}/$file
else else
...@@ -1470,7 +1470,7 @@ fi ...@@ -1470,7 +1470,7 @@ fi
# which conflicts with the fixproto definition. The fixproto # which conflicts with the fixproto definition. The fixproto
# definition and the Solaris definition are used the same way. # definition and the Solaris definition are used the same way.
for file in math.h floatingpoint.h; do for file in math.h floatingpoint.h; do
base=`basename $file` base=`basename $file`.$$
if [ -r ${LIB}/$file ]; then if [ -r ${LIB}/$file ]; then
file_to_fix=${LIB}/$file file_to_fix=${LIB}/$file
else else
...@@ -1505,7 +1505,7 @@ done ...@@ -1505,7 +1505,7 @@ done
# redefine it to __math_exception. This is not a great fix, but I # redefine it to __math_exception. This is not a great fix, but I
# haven't been able to think of anything better. # haven't been able to think of anything better.
file=math.h file=math.h
base=`basename $file` base=`basename $file`.$$
if [ -r ${LIB}/$file ]; then if [ -r ${LIB}/$file ]; then
file_to_fix=${LIB}/$file file_to_fix=${LIB}/$file
else else
...@@ -1538,7 +1538,7 @@ fi ...@@ -1538,7 +1538,7 @@ fi
# Similarly for struct queue in sys/stream.h. # Similarly for struct queue in sys/stream.h.
file=sys/stream.h file=sys/stream.h
base=`basename $file` base=`basename $file`.$$
if [ -r ${LIB}/$file ]; then if [ -r ${LIB}/$file ]; then
file_to_fix=${LIB}/$file file_to_fix=${LIB}/$file
else else
...@@ -1574,7 +1574,7 @@ fi ...@@ -1574,7 +1574,7 @@ fi
# installed in <sys/byteorder.h>, just remove the protos. # installed in <sys/byteorder.h>, just remove the protos.
set -x set -x
file=arpa/inet.h file=arpa/inet.h
base=`basename $file` base=`basename $file`.$$
if [ -r ${LIB}/$file ]; then if [ -r ${LIB}/$file ]; then
file_to_fix=${LIB}/$file file_to_fix=${LIB}/$file
else else
......
...@@ -145,7 +145,7 @@ done ...@@ -145,7 +145,7 @@ done
# Fix first broken decl of getcwd present on some svr4 systems. # Fix first broken decl of getcwd present on some svr4 systems.
file=direct.h file=direct.h
base=`basename $file` base=`basename $file`.$$
if [ -r ${LIB}/$file ]; then if [ -r ${LIB}/$file ]; then
file_to_fix=${LIB}/$file file_to_fix=${LIB}/$file
else else
...@@ -170,7 +170,7 @@ if [ \! -z "$file_to_fix" ]; then ...@@ -170,7 +170,7 @@ if [ \! -z "$file_to_fix" ]; then
fi fi
file=rpcndr.h file=rpcndr.h
base=`basename $file` base=`basename $file`.$$
if [ -r ${LIB}/$file ]; then if [ -r ${LIB}/$file ]; then
file_to_fix=${LIB}/$file file_to_fix=${LIB}/$file
else else
...@@ -195,7 +195,7 @@ if [ \! -z "$file_to_fix" ]; then ...@@ -195,7 +195,7 @@ if [ \! -z "$file_to_fix" ]; then
fi fi
file=winnt.h file=winnt.h
base=`basename $file` base=`basename $file`.$$
if [ -r ${LIB}/$file ]; then if [ -r ${LIB}/$file ]; then
file_to_fix=${LIB}/$file file_to_fix=${LIB}/$file
else else
......
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