summaryrefslogtreecommitdiff
path: root/libbb
diff options
context:
space:
mode:
Diffstat (limited to 'libbb')
-rw-r--r--libbb/login.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/libbb/login.c b/libbb/login.c
index 98e641c..ba9f4d2 100644
--- a/libbb/login.c
+++ b/libbb/login.c
@@ -62,7 +62,8 @@ void FAST_FUNC print_login_issue(const char *issue_file, const char *tty)
case 'm':
outbuf = uts.machine;
break;
-#ifndef HAVE_NO_UTSNAME_DOMAINNAME
+/* The field domainname of struct utsname is Linux specific. */
+#if defined(__linux__)
case 'D':
case 'o':
outbuf = uts.domainname;