Attempt to fix build by updating hostid to follow the new world order.

This commit is contained in:
Xin LI 2009-05-30 07:33:32 +00:00
parent 65b45c166f
commit 67feef6e5d

View File

@ -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;