diff options
author | Richard Stallman <rms@gnu.org> | 1992-12-23 23:36:27 +0000 |
---|---|---|
committer | Richard Stallman <rms@gnu.org> | 1992-12-23 23:36:27 +0000 |
commit | 64310c926a3113d7ac95667c4ed102caff749602 (patch) | |
tree | 8cbd287faf6ffb1f98bcc88c5b516dd8f5d2169c /gcc/fixinc.svr4 | |
parent | be0bad5e6d7cc4c51113d612bbfaa8c8a31ad44d (diff) | |
download | gcc-64310c926a3113d7ac95667c4ed102caff749602.zip gcc-64310c926a3113d7ac95667c4ed102caff749602.tar.gz gcc-64310c926a3113d7ac95667c4ed102caff749602.tar.bz2 |
Correct the modification of endian.h.
From-SVN: r2905
Diffstat (limited to 'gcc/fixinc.svr4')
-rwxr-xr-x | gcc/fixinc.svr4 | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/gcc/fixinc.svr4 b/gcc/fixinc.svr4 index a75d7fa..290067b 100755 --- a/gcc/fixinc.svr4 +++ b/gcc/fixinc.svr4 @@ -951,10 +951,9 @@ if [ \! -z "$file_to_fix" ]; then else sed -e '/# ifdef __STDC__/i\ # if !defined (__GNUC__) && !defined (__GNUG__)' \ - -e ' unsigned long ntohl(), htonl();\ -# endif/a\ -# endif /* !defined (__GNUC__) && !defined (__GNUG__) */\ -# include <sys/byteorder.h>' \ + -e '/# include <sys\/byteorder.h>/s/ / /'\ + -e '/# include <sys\/byteorder.h>/i\ +# endif /* !defined (__GNUC__) && !defined (__GNUG__) */'\ $file_to_fix > ${LIB}/${file}.sed rm -f ${LIB}/$file; mv ${LIB}/${file}.sed ${LIB}/$file echo Fixed $file_to_fix |