diff options
author | ian <ian@138bc75d-0d04-0410-961f-82ee72b054a4> | 1995-01-02 14:37:42 +0000 |
---|---|---|
committer | ian <ian@138bc75d-0d04-0410-961f-82ee72b054a4> | 1995-01-02 14:37:42 +0000 |
commit | 22f21985f4f5f054178ffeaa20c64d068cb19deb (patch) | |
tree | 6f7f42ce4e95a180d4c657d36b05339292a4bab1 /gcc/fixinc.svr4 | |
parent | 059103198a5730cc3ec589a541ce373773b028b9 (diff) | |
download | gcc-22f21985f4f5f054178ffeaa20c64d068cb19deb.tar.gz |
Remove special patch for <netinet/in.h>
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@8715 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/fixinc.svr4')
-rwxr-xr-x | gcc/fixinc.svr4 | 53 |
1 files changed, 27 insertions, 26 deletions
diff --git a/gcc/fixinc.svr4 b/gcc/fixinc.svr4 index 5c76cab8d15..c4650373305 100755 --- a/gcc/fixinc.svr4 +++ b/gcc/fixinc.svr4 @@ -1007,32 +1007,33 @@ if [ \! -z "$file_to_fix" ]; then fi # Conditionalize some of <netinet/in.h> on _KERNEL being defined. - -file=netinet/in.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 - if grep _KERNEL $file_to_fix > /dev/null; then - true - else - sed -e '/#ifdef INKERNEL/i\ -#ifdef _KERNEL' \ - -e '/#endif[ ]*\/\* INKERNEL \*\//a\ -#endif /* _KERNEL */' \ - $file_to_fix > ${LIB}/${file}.sed - rm -f ${LIB}/$file; mv ${LIB}/${file}.sed ${LIB}/$file - echo Fixed $file_to_fix - fi -fi +# 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. +# file=netinet/in.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 +# if grep _KERNEL $file_to_fix > /dev/null; then +# true +# else +# sed -e '/#ifdef INKERNEL/i\ +# #ifdef _KERNEL' \ +# -e '/#endif[ ]*\/\* INKERNEL \*\//a\ +# #endif /* _KERNEL */' \ +# $file_to_fix > ${LIB}/${file}.sed +# rm -f ${LIB}/$file; mv ${LIB}/${file}.sed ${LIB}/$file +# echo Fixed $file_to_fix +# fi +# fi # Conditionalize some of <sys/endian.h> on __GNUC__ and __GNUG__. |