1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-28 05:29:48 +00:00
freebsd-ports/sysutils/grub/files/patch-lib_device.c
Chris D. Faulhaber a13deb03a4 o Teach grub about the lack of raw (e.g. rad0, rda0, etc) devices
allowing grub to be used on -current again.
o Bump PORTREVISION.
o Take over maintainership.
2002-03-24 15:38:55 +00:00

21 lines
628 B
C

--- lib/device.c.orig Sat Oct 13 00:20:05 2001
+++ lib/device.c Sun Mar 24 10:31:41 2002
@@ -209,7 +209,7 @@
#elif defined(__FreeBSD__)
/* FreeBSD */
# if __FreeBSD__ >= 4
- sprintf (name, "/dev/rad%d", unit);
+ sprintf (name, "/dev/ad%d", unit);
# else /* __FreeBSD__ <= 3 */
sprintf (name, "/dev/rwd%d", unit);
# endif /* __FreeBSD__ <= 3 */
@@ -245,7 +245,7 @@
sprintf (name, "/dev/sd%d", unit);
#elif defined(__FreeBSD__)
/* FreeBSD */
- sprintf (name, "/dev/rda%d", unit);
+ sprintf (name, "/dev/da%d", unit);
#elif defined(__NetBSD__) && defined(HAVE_OPENDISK)
/* NetBSD */
char shortname[16];