Attempt to fix build by updating hostid to follow the new world order.
This commit is contained in:
parent
65b45c166f
commit
67feef6e5d
@ -458,7 +458,10 @@ svr4_sys_systeminfo(td, uap)
|
||||
break;
|
||||
|
||||
case SVR4_SI_HW_SERIAL:
|
||||
snprintf(buf, sizeof(buf), "%lu", hostid);
|
||||
pr = td->td_ucred->cr_prison;
|
||||
mtx_lock(&pr->pr_mtx);
|
||||
snprintf(buf, sizeof(buf), "%lu", pr->pr_hostid);
|
||||
mtx_unlock(&pr->pr_mtx);
|
||||
str = buf;
|
||||
break;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user