bug-glibc
[Top][All Lists]
Advanced

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

Re: glibc sysdeps/posix/tempname.c: uint64_t problem on non-glibc hosts


From: Jim Meyering
Subject: Re: glibc sysdeps/posix/tempname.c: uint64_t problem on non-glibc hosts
Date: 16 Mar 2001 23:09:48 +0100
User-agent: Gnus/5.090001 (Oort Gnus v0.01) Emacs/21.0.101

Ulrich Drepper <address@hidden> wrote:
| Paul Eggert <address@hidden> writes:
|
| > 2001-03-16  Paul Eggert  <address@hidden>
| >
| >     * sysdeps/posix/tempname.c (uint64_t): Define to uintmax_t if
| >     not defined, and if UINT64_MAX is not defined.
|
| I fail to see why this is much better.  uintmax_t is a C99 type and if
| it is available uint64_t is as well.  Of course you can define
| uintmax_t in config.h or similar headers but this is not how we do
| this normally.  The file should be self-contained.

It's better for the packages I maintain (fileutils, textutils, sh-utils)
because I already have a test that defines uintmax_t on systems that
lack the definition, but I have no test that defines uint64_t if it
is not defined.  tempname.c (as it is in libc) does not compile on
Ultrix systems.  With the change (and assuming the configure tests
have been run), it should compile just fine.



reply via email to

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