From: Karel Zak Date: Tue, 3 Mar 2026 10:41:50 +0000 (+0100) Subject: build-sys: move shells.c to common (non-Linux) sources X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=1a7e3e2bb3a3041d1a453ca1f52a47ec7baef104;p=thirdparty%2Futil-linux.git build-sys: move shells.c to common (non-Linux) sources 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 Signed-off-by: Karel Zak --- diff --git a/lib/Makemodule.am b/lib/Makemodule.am index a8542af5b..5a2e9a907 100644 --- a/lib/Makemodule.am +++ b/lib/Makemodule.am @@ -37,6 +37,7 @@ libcommon_la_SOURCES = \ lib/randutils.c \ lib/sha1.c \ lib/sha256.c \ + lib/shells.c \ lib/signames.c \ lib/strutils.c \ lib/strv.c \ @@ -48,7 +49,6 @@ libcommon_la_SOURCES = \ if LINUX libcommon_la_SOURCES += \ lib/linux_version.c \ - lib/shells.c \ lib/loopdev.c endif