Jim Meyering wrote:
> At first I removed those declarations from su.c,
> but then the ones from the system unistd.h were
> not visible on recent Linux.
glibc's declares getusershell() properly when _GNU_SOURCE is
defined. At least that's what I can see in the glibc sources. Do you have
more detai
Bruno Haible <[EMAIL PROTECTED]> wrote:
>> 2008-10-18 Bruno Haible <[EMAIL PROTECTED]>
>>
>> * lib/unistd.in.h (getusershell, setusershell, endusershell): New
>> declarations.
>> * lib/getusershell.c: Include unistd.h.
>> * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Require
>>
> 2008-10-18 Bruno Haible <[EMAIL PROTECTED]>
>
> * lib/unistd.in.h (getusershell, setusershell, endusershell): New
> declarations.
> * lib/getusershell.c: Include unistd.h.
> * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Require
> gl_UNISTD_H_DEFAULTS and AC_USE_SYS
glibc declares get/set/endusershell() in . Here is a proposed
patch for gnulib to do the same.
2008-10-18 Bruno Haible <[EMAIL PROTECTED]>
* lib/unistd.in.h (getusershell, setusershell, endusershell): New
declarations.
* lib/getusershell.c: Include unistd.h.
* m