summaryrefslogtreecommitdiff
path: root/gcc/fixinc.svr4
diff options
context:
space:
mode:
authorrms <rms@138bc75d-0d04-0410-961f-82ee72b054a4>1992-12-23 20:30:24 +0000
committerrms <rms@138bc75d-0d04-0410-961f-82ee72b054a4>1992-12-23 20:30:24 +0000
commit901b86b86fd1fa4882e944a4714d75a0de2a7d6b (patch)
treef2d0cb723dbd4e93d4f513119dce00bbf2d61b82 /gcc/fixinc.svr4
parentf0219a9927b4175aa16ef753cc57b3d9f5b40823 (diff)
downloadgcc-901b86b86fd1fa4882e944a4714d75a0de2a7d6b.tar.gz
Add special fixes for netinet/in.h and sys/endian.h.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@2904 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/fixinc.svr4')
-rwxr-xr-xgcc/fixinc.svr46
1 files changed, 3 insertions, 3 deletions
diff --git a/gcc/fixinc.svr4 b/gcc/fixinc.svr4
index fd1724bcf4a..a75d7fa8c76 100755
--- a/gcc/fixinc.svr4
+++ b/gcc/fixinc.svr4
@@ -923,9 +923,9 @@ if [ \! -z "$file_to_fix" ]; then
else
sed -e '/#ifdef INKERNEL/i\
#ifdef _KERNEL' \
- -e '/* INKERNEL */a\
+ -e '/#endif[ ]*\/\* INKERNEL \*\//a\
#endif /* _KERNEL */' \
- ${LIB}/$file > ${LIB}/${file}.sed
+ $file_to_fix > ${LIB}/${file}.sed
rm -f ${LIB}/$file; mv ${LIB}/${file}.sed ${LIB}/$file
echo Fixed $file_to_fix
fi
@@ -955,7 +955,7 @@ if [ \! -z "$file_to_fix" ]; then
# endif/a\
# endif /* !defined (__GNUC__) && !defined (__GNUG__) */\
# include <sys/byteorder.h>' \
- ${LIB}/$file > ${LIB}/${file}.sed
+ $file_to_fix > ${LIB}/${file}.sed
rm -f ${LIB}/$file; mv ${LIB}/${file}.sed ${LIB}/$file
echo Fixed $file_to_fix
fi