hush/init
Kylie McClain 40eea690c7 Fix compiling with musl's utmp stubs
This patch fixes compiling busybox with FEATURE_UTMP and _WTMP enabled.
musl, while not really support utmp/wtmp, provides stub functions, as well
as variables such as _PATH_UTMP, so that programs using utmp or wtmp can
still compile fine.

My reasoning for this patch is that on Exherbo, I'm currently trying to get
us to be able to use the same busybox config file for both glibc and musl
systems, using utmp/wtmp on systems that support it, and using the stubs
on musl without needing two different configs.

As of latest musl git, it provides all utmp functions needed; 1.1.12 doesn't,
but I sent a patch to Rich to add the utmp{,x}name functions expected to
exist, which was merged into musl upstream.

Signed-off-by: Kylie McClain <somasissounds@gmail.com>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
2016-02-01 01:36:05 +01:00
..
bootchartd.c bootchartd: warn if .config looks wrong 2013-11-03 00:07:31 +01:00
Config.src init/*: move applet/kbuild/config/help bits into applet source files 2010-10-12 13:47:15 +02:00
halt.c *: Switch to POSIX utmpx API 2015-04-02 23:03:46 +02:00
init.c Fix compiling with musl's utmp stubs 2016-02-01 01:36:05 +01:00
Kbuild.src init/*: move applet/kbuild/config/help bits into applet source files 2010-10-12 13:47:15 +02:00
mesg.c mesg: operate on stdin, not on stderr (compat) 2011-03-28 00:59:16 +02:00
reboot.h *: trailing empty lines removed 2010-07-26 01:49:12 +02:00