From: Karel Zak Date: Wed, 13 May 2026 13:09:12 +0000 (+0200) Subject: agetty: add initial agetty.h header file X-Git-Url: http://git.ipfire.org/gitweb/index.cgi?a=commitdiff_plain;h=ea1900371a5dee8f2baeb1a829cb04a3ce32ae6c;p=thirdparty%2Futil-linux.git agetty: add initial agetty.h header file Add an empty header file to be populated incrementally as functions are split out from the monolithic agetty.c into separate files. Signed-off-by: Karel Zak --- diff --git a/agetty-cmd/Makemodule.am b/agetty-cmd/Makemodule.am index ccd2689db..569629a49 100644 --- a/agetty-cmd/Makemodule.am +++ b/agetty-cmd/Makemodule.am @@ -3,7 +3,8 @@ sbin_PROGRAMS += agetty MANPAGES += term-utils/agetty.8 dist_noinst_DATA += term-utils/agetty.8.adoc -agetty_SOURCES = agetty-cmd/agetty.c +agetty_SOURCES = agetty-cmd/agetty.c \ + agetty-cmd/agetty.h if USE_PLYMOUTH_SUPPORT agetty_SOURCES += lib/plymouth-ctrl.c diff --git a/agetty-cmd/agetty.c b/agetty-cmd/agetty.c index 6914868db..bd17f920f 100644 --- a/agetty-cmd/agetty.c +++ b/agetty-cmd/agetty.c @@ -36,6 +36,7 @@ #include #include +#include "agetty.h" #include "strutils.h" #include "all-io.h" #include "nls.h" diff --git a/agetty-cmd/agetty.h b/agetty-cmd/agetty.h new file mode 100644 index 000000000..ca3cf9cc0 --- /dev/null +++ b/agetty-cmd/agetty.h @@ -0,0 +1,4 @@ +#ifndef UTIL_LINUX_AGETTY_H +#define UTIL_LINUX_AGETTY_H + +#endif /* UTIL_LINUX_AGETTY_H */ diff --git a/agetty-cmd/meson.build b/agetty-cmd/meson.build index 144107846..f7db71bfd 100644 --- a/agetty-cmd/meson.build +++ b/agetty-cmd/meson.build @@ -1,5 +1,6 @@ agetty_sources = files( 'agetty.c', + 'agetty.h', ) if LINUX