From ea1f649046546a860f68b97ddc3015b7e44346ca Mon Sep 17 00:00:00 2001 From: Damien Miller Date: Wed, 5 Aug 2020 08:58:57 +1000 Subject: support NetBSD's utmpx.ut_ss address field bz#960, ok dtucker --- loginrec.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'loginrec.c') diff --git a/loginrec.c b/loginrec.c index e5289deb8..ea058fd6f 100644 --- a/loginrec.c +++ b/loginrec.c @@ -778,6 +778,9 @@ construct_utmpx(struct logininfo *li, struct utmpx *utx) strncpy(utx->ut_host, li->hostname, MIN_SIZEOF(utx->ut_host, li->hostname)); # endif +# ifdef HAVE_SS_IN_UTMPX + utx->ut_ss = li->hostaddr.sa_storage; +# endif # ifdef HAVE_ADDR_IN_UTMPX /* this is just a 32-bit IP address */ if (li->hostaddr.sa.sa_family == AF_INET) -- cgit v1.2.3