From c53e8de43ce1c86111993f791e5440a656dc75a8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B6rn=20Jacke?= Date: Sun, 6 Jan 2019 20:46:20 +0100 Subject: [PATCH] waf: check for utmpx struct member ut_host BUG: https://bugzilla.samba.org/show_bug.cgi?id=2489 Signed-off-by: Bjoern Jacke Reviewed-by: Stefan Metzmacher --- source3/wscript | 2 ++ 1 file changed, 2 insertions(+) diff --git a/source3/wscript b/source3/wscript index f9e9d3013bc..24e52e592c9 100644 --- a/source3/wscript +++ b/source3/wscript @@ -809,6 +809,8 @@ msg.msg_accrightslen = sizeof(fd); define='HAVE_UT_UT_EXIT') conf.CHECK_STRUCTURE_MEMBER('struct utmpx', 'ut_syslen', headers='utmpx.h', define='HAVE_UX_UT_SYSLEN') + conf.CHECK_STRUCTURE_MEMBER('struct utmpx', 'ut_host', headers='utmpx.h', + define='HAVE_UX_UT_HOST') conf.CHECK_CODE('struct utmp utarg; struct utmp *utreturn; utreturn = pututline(&utarg);', 'PUTUTLINE_RETURNS_UTMP', headers='utmp.h', msg="Checking whether pututline returns pointer")