On Mon, Aug 22, 2005, Daniel Schepler wrote:
> Package: sbm
> Severity: serious
> Version: 3.7.1-7

tag 324575 patch
thanks

> /tmp/buildd/sbm-3.7.1/installer/sbminst.c:283: undefined reference to `MAJOR'
> /tmp/buildd/sbm-3.7.1/installer/sbminst.c:284: undefined reference to `MINOR'

Here is a patch that fixes the issue. 

-- 
adn
Mohammed Adnène Trojette

--- installer/sbminst.c 2001-02-09 18:10:32.000000000 +0100
+++ ../sbminst.c        2005-09-03 13:14:01.861723312 +0200
@@ -34,6 +34,7 @@
 #include <sys/types.h>
 #include <fcntl.h>
 #include <dirent.h>
+#include<sys/sysmacros.h>
 
 #else
 
@@ -280,8 +281,8 @@
     die ("%s is not a block device!\n", dev);
 
 /* Check device */
-  major = MAJOR (st.st_rdev);
-  minor = MINOR (st.st_rdev);
+  major = major (st.st_rdev);
+  minor = minor (st.st_rdev);
 
   if (major != MAJOR_FD && 
       major != MAJOR_HD1 && 

Reply via email to