aboutsummaryrefslogtreecommitdiff
path: root/gcc/fixinc.svr4
diff options
context:
space:
mode:
authorRichard Stallman <rms@gnu.org>1992-12-23 23:36:27 +0000
committerRichard Stallman <rms@gnu.org>1992-12-23 23:36:27 +0000
commit64310c926a3113d7ac95667c4ed102caff749602 (patch)
tree8cbd287faf6ffb1f98bcc88c5b516dd8f5d2169c /gcc/fixinc.svr4
parentbe0bad5e6d7cc4c51113d612bbfaa8c8a31ad44d (diff)
downloadgcc-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-xgcc/fixinc.svr47
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