diff options
author | Denys Vlasenko <vda.linux@googlemail.com> | 2009-05-19 13:18:45 +0200 |
---|---|---|
committer | Denys Vlasenko <vda.linux@googlemail.com> | 2009-05-19 13:18:45 +0200 |
commit | 5a49d284a6a9f6cf2076f23561f95aebdfd44592 (patch) | |
tree | 3e51b2c326a9c7d3b18f3d04c91b6af9e5c0621a /libbb | |
parent | 167cd709df06fb0f7aa346a32133d54ed3ae6c48 (diff) | |
download | busybox-w32-5a49d284a6a9f6cf2076f23561f95aebdfd44592.tar.gz busybox-w32-5a49d284a6a9f6cf2076f23561f95aebdfd44592.tar.bz2 busybox-w32-5a49d284a6a9f6cf2076f23561f95aebdfd44592.zip |
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')
-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 b3e199ce4..98e641cce 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) | |||
62 | case 'm': | 62 | case 'm': |
63 | outbuf = uts.machine; | 63 | outbuf = uts.machine; |
64 | break; | 64 | break; |
65 | #ifndef HAVE_NO_UTSNAME_DOMAINNAME | ||
65 | case 'D': | 66 | case 'D': |
66 | case 'o': | 67 | case 'o': |
67 | outbuf = uts.domainname; | 68 | outbuf = uts.domainname; |
68 | break; | 69 | break; |
70 | #endif | ||
69 | case 'd': | 71 | case 'd': |
70 | strftime(buf, sizeof(buf), fmtstr_d, localtime(&t)); | 72 | strftime(buf, sizeof(buf), fmtstr_d, localtime(&t)); |
71 | break; | 73 | break; |