Marcel Moolenaar writes:
 > Wesley Morgan wrote:
 > > 
 > > Anyone having problems with the linuxulator the past couple days?
 > 
 > Define "past couple of days". I have a working linuxulator made on Oct
 > 29, 12:25 PST.

phk took away mkbdev on 10/31.  The following "fixes" it, but I
have no idea if it is correct:

Drew

Index: compat/linux/linux_stats.c
===================================================================
RCS file: /home/ncvs/src/sys/compat/linux/linux_stats.c,v
retrieving revision 1.22
diff -u -r1.22 linux_stats.c
--- compat/linux/linux_stats.c  2000/08/22 01:51:11     1.22
+++ compat/linux/linux_stats.c  2000/11/01 18:34:05
@@ -360,8 +379,8 @@
         * dev_t returned from previous syscalls. Just return a bzeroed
         * ustat in that case.
         */
-       dev = makebdev(uap->dev >> 8, uap->dev & 0xFF);
-       if (vfinddev(dev, VBLK, &vp)) {
+       dev = makedev(uap->dev >> 8, uap->dev & 0xFF);
+       if (vfinddev(dev, VCHR, &vp)) {
                if (vp->v_mount == NULL)
                        return (EINVAL);
                stat = &(vp->v_mount->mnt_stat);


To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-current" in the body of the message

Reply via email to