Don't include malloc.h, some platforms
authordrepper <drepper>
Thu, 2 Oct 2003 22:53:15 +0000 (22:53 +0000)
committerdrepper <drepper>
Thu, 2 Oct 2003 22:53:15 +0000 (22:53 +0000)
commitdc26f96bc7b68bbfe3c7480f77c7126f4842fecf
tree98c623a95570a35efcb73dccdaff46b62797ea33
parent8d74505681612234940dbd682feb76d712579fe0
Don't include malloc.h, some platforms
complain and it doesn't appear to be used.
[!_LIBC && HAVE_STRERROR_R && !HAVE_DECL_STRERROR_R]: Declare
strerror_r.
[!_LIBC && !HAVE_STRERROR_R && !HAVE_DECL_STRERROR]: Declare
strerror.
(hol_entry_long_iterate): Change __attribute to __attribute__.
(_help, __argp_error, __argp_failure) [!_LIBC && (HAVE_FLOCKFILE
&& HAVE_FUNLOCKFILE)]: Protect call to flockfile and funlockfile.
(__argp_basename) [!_LIBC]: New. Taken from LSH, by Niels Möller,
modifed after comments from Ulrich Drepper.
(__argp_short_program_name): Ditto.
(__argp_state_help, __argp_error, __argp_failure): Use it.
(__argp_failure): Use strerror when necessary.
argp/argp-help.c