From xemacs-m  Tue Mar  4 04:30:48 1997
Received: from uni-kl.de (news.uni-kl.de [131.246.136.51])
	by xemacs.org (8.8.5/8.8.5) with SMTP id EAA16590
	for <xemacs-beta@xemacs.org>; Tue, 4 Mar 1997 04:30:47 -0600 (CST)
Received: from uklirb.informatik.uni-kl.de by news.uni-kl.de id ad21541;
          4 Mar 97 11:30 MET
Received: from gentzen.informatik.uni-kl.de by uklirb.informatik.uni-kl.de
          id aa03308; 4 Mar 97 11:24 MET
To: xemacs-beta@xemacs.org
Reply-To: jaeger@informatik.uni-kl.de
Subject: Question about src/s/linux.h
Date: 4 Mar 1997 11:20:19 +0100
From: jaeger@informatik.uni-kl.de
Message-ID:  <9703041124.aa03308@uklirb.informatik.uni-kl.de>


In src/s/linux.h is the following code (line 237):
--------------------------->
/* XEmacs addition: */
/* Linux defines these in <values.h>, but they can't be used in #if's
   Include values.h now so that we don't get complaints if it's
included later. 
*/

#include <values.h>
#undef  SHORTBITS
#undef  INTBITS
#undef  LONGBITS
<---------------------------

The inclusion causes the problems with glibc (needing to define
__LDBL_UNION__, otherwise the generated Makefiles are corrupted).
(<values.h> includes <float.h> (from
/usr/lib/gcc-lib/*/*/include/float.h)  which needs __LDBL__UNION__)

Greping through the source I found no place where <values.h> is
included and therefore think that we can delete the code. I'm just
configuring and compiling XEmacs-20.1-b5 without that code. XEmacs has
been build without problems (details in a separate mail).

The only file I've found that does include <values.h> is <math.h> in
libc5 (glibc declares values.h as obsolete). Therefore we might have
to change src/sysfloat.h also.

Depending on the Makros XEmacs needs it might be better to include
directly <limits.h> instead of <values.h>, since both glibc and libc5:
- define INT_MAX in <limits.h>
- define LONGBITS, SHORTBITS, INTBITS in <values.h>


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/

