Skip to content

Commit

Permalink
build: tweak SIZEOF utmp->ut_line
Browse files Browse the repository at this point in the history
Set the critical parameter of CHECK_SIZEOF utmp->ut_line to False since
it's used to find out if utmp support should be enabled.
This is necessary with the introduction of the cross-compile aware
CHECK_SIZEOF.

Signed-off-by: Gustavo Zacarias <[email protected]>
Reviewed-by: Andrew Bartlett <[email protected]>
Reviewed-by: David Disseldorp <[email protected]>
  • Loading branch information
gustavoz authored and ddiss committed May 6, 2014
1 parent 6619055 commit db86180
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion source3/wscript
Original file line number Diff line number Diff line change
Expand Up @@ -813,7 +813,7 @@ msg.msg_acctrightslen = sizeof(fd);
'PUTUTLINE_RETURNS_UTMP', headers='utmp.h',
msg="Checking whether pututline returns pointer")
conf.CHECK_SIZEOF(['((struct utmp *)NULL)->ut_line'], headers='utmp.h',
define='SIZEOF_UTMP_UT_LINE')
define='SIZEOF_UTMP_UT_LINE', critical=False)
if not conf.CONFIG_SET('SIZEOF_UTMP_UT_LINE'):
conf.env.with_utmp = False
elif int(conf.env.SIZEOF_UTMP_UT_LINE) < 15:
Expand Down

0 comments on commit db86180

Please sign in to comment.