[git commit master 1/1] runlevel/wall: depend on utmp feature

Mike Frysinger vapier at gentoo.org
Sun Feb 6 17:29:25 UTC 2011


commit: http://git.busybox.net/busybox/commit/?id=ca18e25525267736e7e919987c50569f27d70d36
branch: http://git.busybox.net/busybox/commit/?id=refs/heads/master

These utils use funcs from utmp.h (like setutent), but utmp.h is only
included when FEATURE_UTMP is enabled.  Otherwise we get build failures
due to missing defines/prototypes.  So depend on this option.

Signed-off-by: Mike Frysinger <vapier at gentoo.org>
---
 miscutils/Config.src |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/miscutils/Config.src b/miscutils/Config.src
index da52e14..b5866bb 100644
--- a/miscutils/Config.src
+++ b/miscutils/Config.src
@@ -583,6 +583,7 @@ config RFKILL
 config RUNLEVEL
 	bool "runlevel"
 	default y
+	depends on FEATURE_UTMP
 	help
 	  find the current and previous system runlevel.
 
@@ -658,6 +659,7 @@ config VOLNAME
 config WALL
 	bool "wall"
 	default y
+	depends on FEATURE_UTMP
 	help
 	  Write a message to all users that are logged in.
 
-- 
1.7.3.4



More information about the busybox-cvs mailing list