Commit 64310c92 by Richard Stallman

Correct the modification of endian.h.

From-SVN: r2905
parent be0bad5e
...@@ -951,10 +951,9 @@ if [ \! -z "$file_to_fix" ]; then ...@@ -951,10 +951,9 @@ if [ \! -z "$file_to_fix" ]; then
else else
sed -e '/# ifdef __STDC__/i\ sed -e '/# ifdef __STDC__/i\
# if !defined (__GNUC__) && !defined (__GNUG__)' \ # if !defined (__GNUC__) && !defined (__GNUG__)' \
-e ' unsigned long ntohl(), htonl();\ -e '/# include <sys\/byteorder.h>/s/ / /'\
# endif/a\ -e '/# include <sys\/byteorder.h>/i\
# endif /* !defined (__GNUC__) && !defined (__GNUG__) */\ # endif /* !defined (__GNUC__) && !defined (__GNUG__) */'\
# include <sys/byteorder.h>' \
$file_to_fix > ${LIB}/${file}.sed $file_to_fix > ${LIB}/${file}.sed
rm -f ${LIB}/$file; mv ${LIB}/${file}.sed ${LIB}/$file rm -f ${LIB}/$file; mv ${LIB}/${file}.sed ${LIB}/$file
echo Fixed $file_to_fix echo Fixed $file_to_fix
......
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