diff options
author | delphij <delphij@FreeBSD.org> | 2009-05-30 07:33:32 +0000 |
---|---|---|
committer | delphij <delphij@FreeBSD.org> | 2009-05-30 07:33:32 +0000 |
commit | 7059dd02fa8ac8944e14eca5897ec27371c19d5d (patch) | |
tree | a0658cdf7aabc857afeac6b2a1adff9c4c0fcc7b /sys/compat/svr4 | |
parent | 5c79b23a337b3f9629ba027193a3633b1bc2d46a (diff) | |
download | FreeBSD-src-7059dd02fa8ac8944e14eca5897ec27371c19d5d.zip FreeBSD-src-7059dd02fa8ac8944e14eca5897ec27371c19d5d.tar.gz |
Attempt to fix build by updating hostid to follow the new world order.
Diffstat (limited to 'sys/compat/svr4')
-rw-r--r-- | sys/compat/svr4/svr4_stat.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/sys/compat/svr4/svr4_stat.c b/sys/compat/svr4/svr4_stat.c index 42e6122..415faa0 100644 --- a/sys/compat/svr4/svr4_stat.c +++ b/sys/compat/svr4/svr4_stat.c @@ -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; |