shells.c uses POSIX setusershell()/getusershell()/endusershell()
which are available on non-Linux systems (e.g., GNU/Hurd). Move it
from the Linux-only section to common libcommon sources.
The meson build already had shells.c in common sources, so only
the autotools build needed fixing.
Co-authored-by: Samuel Thibault <samuel.thibault@aquilenet.fr>
Signed-off-by: Karel Zak <kzak@redhat.com>
lib/randutils.c \
lib/sha1.c \
lib/sha256.c \
+ lib/shells.c \
lib/signames.c \
lib/strutils.c \
lib/strv.c \
if LINUX
libcommon_la_SOURCES += \
lib/linux_version.c \
- lib/shells.c \
lib/loopdev.c
endif