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 <unistd.h> declares getusershell() properly when _GNU_SOURCE is defined. At least that's what I can see in the glibc sources. Do you have more details about that system? Bruno