Hello, The attached patch fixes building on non-linux Samuel
diff --git a/login-utils/Makemodule.am b/login-utils/Makemodule.am index 4f52cea3c..8bc3ee37e 100644 --- a/login-utils/Makemodule.am +++ b/login-utils/Makemodule.am @@ -31,8 +31,10 @@ dist_man_MANS += login-utils/sulogin.8 sulogin_SOURCES = \ login-utils/sulogin.c \ login-utils/sulogin-consoles.c \ - login-utils/sulogin-consoles.h \ - lib/plymouth-ctrl.c + login-utils/sulogin-consoles.h +if USE_PLYMOUTH_SUPPORT +sulogin_SOURCES += lib/plymouth-ctrl.c +endif sulogin_LDADD = $(LDADD) libcommon.la if HAVE_LIBCRYPT diff --git a/sys-utils/hwclock.c b/sys-utils/hwclock.c index 1f7ef3317..db448687d 100644 --- a/sys-utils/hwclock.c +++ b/sys-utils/hwclock.c @@ -678,7 +678,7 @@ display_time(struct timeval hwctime) #ifndef SYS_settimeofday # ifdef __NR_settimeofday # define SYS_settimeofday __NR_settimeofday -# else +# elif defined(__NR_settimeofday_time32) # define SYS_settimeofday __NR_settimeofday_time32 # endif #endif diff --git a/term-utils/Makemodule.am b/term-utils/Makemodule.am index 92df7dbc8..c424dbdf8 100644 --- a/term-utils/Makemodule.am +++ b/term-utils/Makemodule.am @@ -42,8 +42,10 @@ endif # BUILD_SCRIPTLIVE if BUILD_AGETTY sbin_PROGRAMS += agetty dist_man_MANS += term-utils/agetty.8 -agetty_SOURCES = term-utils/agetty.c \ - lib/plymouth-ctrl.c +agetty_SOURCES = term-utils/agetty.c +if USE_PLYMOUTH_SUPPORT +agetty_SOURCES += lib/plymouth-ctrl.c +endif agetty_LDADD = $(LDADD) libcommon.la if BSD agetty_LDADD += -lutil