[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

problems compiling fdisk.c



As of current CVS, utilities/libfdisk/fdisk.c gives:

fdisk.c: In function `is_disk':
fdisk.c:1008: `SCSI_DISK_MAJOR' undeclared (first use in this function)
fdisk.c:1008: (Each undeclared identifier is reported only once
fdisk.c:1008: for each function it appears in.)

This simple patch seems to fix the problem, but this line was just taken from
the previous version of fdisk.c.  As I am not sure I did not commit the change.

--
Mike

Index: fdisk.c
===================================================================
RCS file: /cvs/debian-boot/boot-floppies/utilities/libfdisk/fdisk.c,v
retrieving revision 1.36
diff -u -b -r1.36 fdisk.c
--- fdisk.c	2000/01/08 07:47:48	1.36
+++ fdisk.c	2000/01/08 09:43:27
@@ -1005,7 +1005,7 @@
     }
 
     /* SCSI disk driver will only accept disks and mag-opt drives */
-    if (MAJOR(stat_buf.st_rdev) == SCSI_DISK_MAJOR)
+    if (SCSI_DISK_MAJOR(MAJOR(stat_buf.st_rdev)))
     return 1;
 
 #if #cpu (i386)


Reply to: