Author: delphij
Date: Sat May 30 07:33:32 2009
New Revision: 193084
URL: http://svn.freebsd.org/changeset/base/193084

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

Modified:
  head/sys/compat/svr4/svr4_stat.c

Modified: head/sys/compat/svr4/svr4_stat.c
==============================================================================
--- head/sys/compat/svr4/svr4_stat.c    Sat May 30 07:08:16 2009        
(r193083)
+++ head/sys/compat/svr4/svr4_stat.c    Sat May 30 07:33:32 2009        
(r193084)
@@ -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;
 
_______________________________________________
svn-src-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"

Reply via email to