This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
fixinc patch for Solaris 2.6
- To: egcs at cygnus dot com
- Subject: fixinc patch for Solaris 2.6
- From: James Macnicol <J dot Macnicol at student dot anu dot edu dot au>
- Date: Mon, 15 Sep 1997 22:42:25 +1000
- Organization: Qaqaville, Inc.
Attached is a patch for egcs 970910 so that it works on Solaris 2.6.
This is essentially the same as the patch offered by Casper Dik in
comp.unix.solaris for standard gcc and which has apparently found its
way into the Solaris 2.x FAQ. Don't ask me why it's needed ... I have
no idea.
James
*** gcc/fixinc.svr4.orig Mon Sep 15 15:35:41 1997
--- gcc/fixinc.svr4 Mon Sep 15 15:36:28 1997
***************
*** 203,208 ****
--- 203,209 ----
s/__STDC__[ ][ ]*!=[ ][ ]*0/defined (__STRICT_ANSI__)/g
s/__STDC__[ ][ ]*!=[ ][ ]*1/!defined (__STRICT_ANSI__)/g
s/__STDC__ - 0 == 0/!defined (__STRICT_ANSI__)/g
+ s/__STDC__ - 0 == 1/defined (__STRICT_ANSI__)/g
/^typedef[ ][ ]*[unsigned ]*long[ ][ ]*[u_]*longlong_t;/s/long/long long/
' $2/$file > $2/$file.sed
mv $2/$file.sed $2/$file