Patch from Nick Fedchik, CONFIG_SYSLOGD should determine getty's
authorGlenn L McGrath <bug1@ihug.co.nz>
Sat, 8 Feb 2003 22:33:53 +0000 (22:33 -0000)
committerGlenn L McGrath <bug1@ihug.co.nz>
Sat, 8 Feb 2003 22:33:53 +0000 (22:33 -0000)
behaviour.

loginutils/getty.c

index 1b9c6ac4d61a1aaa832ed75278efe974831dd6c9..b8be8b60346f6afea2a95af9869bee2e27bf22d2 100644 (file)
 
 #define _PATH_LOGIN     "/bin/login"
 
-#ifdef linux
+ /* If USE_SYSLOG is undefined all diagnostics go directly to /dev/console. */
+#ifdef CONFIG_SYSLOGD
 #include <sys/param.h>
 #define USE_SYSLOG
-#endif
-
- /* If USE_SYSLOG is undefined all diagnostics go directly to /dev/console. */
-#ifdef USE_SYSLOG
 #include <syslog.h>
 #endif