bug-gnu-utils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

sed 3.02 won't compile on Solaris 2.8


From: Soeren Sandmann
Subject: sed 3.02 won't compile on Solaris 2.8
Date: 12 Jul 2001 01:00:45 +0200
User-agent: Gnus/5.0807 (Gnus v5.8.7) Emacs/20.7

I had to apply the following to get GNU sed 3.02 to compile on a
system that says this about itself:

alex:~/vertigo/sed-3.02% uname -a
SunOS alex 5.8 Generic_108528-03 sun4u sparc


The reason is that GCC on that system apparently doesn't define
__STDC__ in header files.


--- basicdefs.h Sat Jul  4 16:25:44 1998
+++ ../../sed-3.02-new/sed/basicdefs.h  Thu Jul 12 00:51:40 2001
@@ -21,7 +21,7 @@
 #define BASICDEFS_H
 
 /* Can the compiler grok function prototypes? */
-#if defined __STDC__ && __STDC__
+#if (defined __STDC__ && __STDC__) || __GNUC__
 # define P_(s)         s
 #else
 # define P_(s)         ()



Søren Sandmann



reply via email to

[Prev in Thread] Current Thread [Next in Thread]