From xemacs-m  Thu Jul  3 05:19:18 1997
Received: from mercury.Sun.COM (mercury.Sun.COM [192.9.25.1])
	by xemacs.org (8.8.5/8.8.5) with SMTP id FAA24807
	for <xemacs-beta@xemacs.org>; Thu, 3 Jul 1997 05:19:17 -0500 (CDT)
Received: from Eng.Sun.COM ([129.146.1.25]) by mercury.Sun.COM (SMI-8.6/mail.byaddr) with SMTP id DAA13828; Thu, 3 Jul 1997 03:43:59 -0700
Received: from kindra.eng.sun.com by Eng.Sun.COM (SMI-8.6/SMI-5.3)
	id DAA11662; Thu, 3 Jul 1997 03:18:47 -0700
Received: from xemacs.eng.sun.com by kindra.eng.sun.com (SMI-8.6/SMI-SVR4)
	id DAA00747; Thu, 3 Jul 1997 03:18:45 -0700
Received: by xemacs.eng.sun.com (SMI-8.6/SMI-SVR4)
	id DAA02646; Thu, 3 Jul 1997 03:18:42 -0700
Date: Thu, 3 Jul 1997 03:18:42 -0700
Message-Id: <199707031018.DAA02646@xemacs.eng.sun.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
From: Martin Buchholz <mrb@Eng.Sun.COM>
To: Mike Scheidler <c23mts@eng.delcoelect.com>
Cc: xemacs-beta@xemacs.org
Subject: [PATCH] Compilation problem on Solaris 2.4 fixed
In-Reply-To: <7043.867422941@kocrsw12>
References: <7043.867422941@kocrsw12>
X-Mailer: VM 6.32 under 20.3 "Sofia" XEmacs  Lucid (beta9)
Reply-To: Martin Buchholz <mrb@Eng.Sun.COM>

>>>>> "mts" == Mike Scheidler <c23mts@eng.delcoelect.com> writes:

mts> Both b8 and b9 were DOA for me, so I spent some time yesterday digging
mts> around in the header files and found the problem.  It seems that Solaris
mts> 2.4 doesn't like the '#define _XOPEN_SOURCE 1' line that was recently added
mts> to the sol2.h header file.  (BTW, 2.5 has no problem.)  ChangeLog entry
mts> and patch follow.

I'm undoing this patch for b11.  I believe define _XOPEN_SOURCE* is
the right thing to do, and works for me on 2.4 with cc and gcc.  As
usual, you may have problems if you build with gcc on an OS level even
slightly different.  See what gcc -v says.  Let me know what results
you get with b11, but first make sure your gcc is correctly installed.

Martin


mts> 1997-06-27  Mike Scheidler  <c23mts@eng.delcoelect.com>

mts> 	* s/sol2.h: Undefined _XOPEN_SOURCE for Solaris 2.4.


mts> --- src/s/sol2.h~       Sat Jun 21 15:04:43 1997
mts> +++ src/s/sol2.h        Fri Jun 27 09:19:40 1997
mts> @@ -19,9 +19,11 @@
mts>  #define _POSIX_C_SOURCE 199506L
mts>  #endif
mts>  #undef  _XOPEN_SOURCE
mts> -#define _XOPEN_SOURCE 1
mts>  #undef  _XOPEN_SOURCE_EXTENDED
mts> +#if OS_RELEASE >= 55
mts> +#define _XOPEN_SOURCE 1
mts>  #define _XOPEN_SOURCE_EXTENDED 1
mts> +#endif /* >= SunOS 5.5 */
mts>  #endif

mts>  #if 1 /* mrb */

