diff options
author | Denys Vlasenko | 2009-05-19 13:18:45 +0200 |
---|---|---|
committer | Denys Vlasenko | 2009-05-19 13:18:45 +0200 |
commit | 5a49d284a6a9f6cf2076f23561f95aebdfd44592 (patch) | |
tree | 3e51b2c326a9c7d3b18f3d04c91b6af9e5c0621a /libbb/login.c | |
parent | 167cd709df06fb0f7aa346a32133d54ed3ae6c48 (diff) | |
download | busybox-5a49d284a6a9f6cf2076f23561f95aebdfd44592.zip busybox-5a49d284a6a9f6cf2076f23561f95aebdfd44592.tar.gz |
add platform tweaks
login: consider platforms having no domainname field in the utsname struct
include/platform.h: define IUCLC to 0 on platforms where it is not defined
Signed-off-by: Luca Favatella <slackydeb@gmail.com>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'libbb/login.c')
-rw-r--r-- | libbb/login.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libbb/login.c b/libbb/login.c index b3e199c..98e641c 100644 --- a/libbb/login.c +++ b/libbb/login.c @@ -62,10 +62,12 @@ void FAST_FUNC print_login_issue(const char *issue_file, const char *tty) case 'm': outbuf = uts.machine; break; +#ifndef HAVE_NO_UTSNAME_DOMAINNAME case 'D': case 'o': outbuf = uts.domainname; break; +#endif case 'd': strftime(buf, sizeof(buf), fmtstr_d, localtime(&t)); break; |