Why __WORDSIZE_COMPAT32 is off for x86_64?

Denys Vlasenko vda.linux at googlemail.com
Thu Nov 26 23:33:39 UTC 2009


On Thursday 26 November 2009 16:27, Bernhard Reutner-Fischer wrote:
> On Thu, Nov 26, 2009 at 01:49:51PM +0100, Denys Vlasenko wrote:
> >libc/sysdeps/linux/x86_64/bits/wordsize.h:
> >
> >/* Determine the wordsize from the preprocessor defines.  */
> >
> >#if defined __x86_64__
> ># define __WORDSIZE     64
> >/*# define __WORDSIZE_COMPAT32  1*/
> >#else
> ># define __WORDSIZE     32
> >#endif
> >
> >This breaks /var/run/utmp format.
> >This makes any tool which uses /var/run/utmp to misbehave
> >on a system where some other parts are based on glibc:
> >
> >https://bugzilla.redhat.com/show_bug.cgi?id=541587
> >
> >Whoever commented it out forgot to explain *why*
> >he commented it out. I propose uncommenting it.
> >
> >Please ACK or apply attached patch.

Pushed to git
--
vda


More information about the uClibc mailing list