summaryrefslogtreecommitdiff
path: root/source3/smbd
diff options
context:
space:
mode:
Diffstat (limited to 'source3/smbd')
-rw-r--r--source3/smbd/connection.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/source3/smbd/connection.c b/source3/smbd/connection.c
index 9a678ba88f..972ffa52dd 100644
--- a/source3/smbd/connection.c
+++ b/source3/smbd/connection.c
@@ -225,7 +225,9 @@ static void utmp_update(const pstring dirname, const struct utmp *u, const char
getutmpx(u, &ux);
if (host) {
+#if defined(HAVE_UX_UT_SYSLEN)
ux.ut_syslen = strlen(host);
+#endif /* defined(HAVE_UX_UT_SYSLEN) */
pstrcpy(ux.ut_host, host);
}