From xemacs-m  Mon Feb 24 06:09:56 1997
Received: from birdland.rhein-neckar.de (root@birdland.rhein-neckar.de [193.197.88.3])
	by xemacs.org (8.8.5/8.8.5) with ESMTP id GAA13961
	for <xemacs-beta@xemacs.org>; Mon, 24 Feb 1997 06:09:54 -0600 (CST)
Received: from mips.pfalz.de (uucp@localhost) by birdland.rhein-neckar.de (8.8.5/8.8.3) with BSMTP id NAA01383 for xemacs.org!xemacs-beta; Mon, 24 Feb 1997 13:08:15 +0100 (MET)
Received: from cthulhu.pfalz.de by mips.pfalz.de with bsmtp
	(Smail3.1.29.1 #6) id m0vyyMf-000CmtC; Mon, 24 Feb 97 12:14 CET
Received: from arthur.pfalz.de by cthulhu.pfalz.de
	via rsmtp with bsmtp
	id <m0vyvqz-000CGDC@cthulhu.pfalz.de>
	for <xemacs-beta@xemacs.org>; Mon, 24 Feb 1997 09:33:45 +0100 (MET)
	(Smail-3.2 1996-Jul-4 #20 built 1996-Oct-4)
Received: by arthur.pfalz.de
	via sendmail with stdio
	id <m0vyudy-0001n4C@arthur.pfalz.de>
	for xemacs-beta@xemacs.org; Mon, 24 Feb 1997 08:16:14 +0100 (CET)
	(Smail-3.2.0.91 1997-Jan-14 #7 built 1997-Feb-10)
Message-Id: <m0vyudy-0001n4C@arthur.pfalz.de>
Date: Mon, 24 Feb 1997 08:16:14 +0100 (CET)
From: Andreas Jaeger <aj@arthur.pfalz.de>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
To: xemacs-beta@xemacs.org
Reply-To: jaeger@informatik.uni-kl.de
Subject: glibc changes in XEmacs 20.1-b2


Hi,

the following change has been made (from the diff file
xemacs-20.1-b1-20.1-b2.patch.gz):

Index: xemacs-20.0/src/floatfns.c
diff -u xemacs-20.0/src/floatfns.c:1.1.1.1 xemacs-20.0/src/floatfns.c:1.2
--- xemacs-20.0/src/floatfns.c:1.1.1.1  Wed Dec 18 14:44:00 1996
+++ xemacs-20.0/src/floatfns.c  Sun Feb 23 17:14:55 1997
@@ -53,6 +53,10 @@
 
 /* Need to define a differentiating symbol -- see sysfloat.h */
 #define THIS_FILENAME floatfns
+/* glibc chokes unless _GNU_SOURCE is defined */
+#if defined (__GLIBC__) && (__GLIBC__ >= 2)
+#define _GNU_SOURCE 1
+#endif
 #include "sysfloat.h"
 
 #ifndef HAVE_RINT

But this isn't working since <features.h> is already included before
the inclusion of "sysfloat.h" - and therefore the definition of
_GNU_SOURCE is not tested any more.

_GNU_SOURCE has to be defined before the inclusion of <features.h>
which means before any library header file.

I see the following possibilities at the moment: Either test in
configure for glibc and define _GNU_SOURCE if glibc is used or define
_GNU_SOURCE unconditionally at the top of this file.


This change and the change in gmalloc.c needs also to be included in
xemacs-19.15.

Andreas
-- 
 Andreas Jaeger   aj@arthur.pfalz.de    jaeger@informatik.uni-kl.de
  Altenwoogstr. 31      67655 Kaiserslautern, Germany
   Phone +49 631 3403051 Fax/Modem +49 631 3403052
    http://www.student.uni-kl.de/~ajaeger/

