I just checked the fileutils source, as "ls" shows device numbers. It uses minor() and major() from <sys/types.h>, <sys/mkdev.h> or <sys/sysmacros.h> if possible. That ought to be the right way. On Debian libc6-dev_2.1.3-2_i386, <sys/sysmacros.h> defines the macros, <sys/types.h> includes it when __USE_BSD, and <sys/mkdev.h> doesn't exist.
- grub/asmstub.c:533: undefined reference to `MAJOR' Kalle Olavi Niemitalo
- Re: grub/asmstub.c:533: undefined reference to ... OKUJI Yoshinori
- Re: grub/asmstub.c:533: undefined reference... Kalle Olavi Niemitalo
- Re: grub/asmstub.c:533: undefined refer... OKUJI Yoshinori
- Re: grub/asmstub.c:533: undefined r... Pavel Roskin
