# endif
#if defined(__NetBSD__)
+# ifndef RAW_FLOPPY_MAJOR
+# define RAW_FLOPPY_MAJOR 9
+# endif /* ! RAW_FLOPPY_MAJOR */
+
/* Adjust device driver parameters. This function should be called just
after successfully opening the device. For now, it simply prevents the
floppy driver from retrying operations on failure, as otherwise the
ret = open (os_dev, flags, S_IROTH | S_IRGRP | S_IRUSR | S_IWUSR);
if (ret >= 0)
- configure_device_driver (fd);
+ configure_device_driver (ret);
return ret;
}
unsigned sector_size, log_sector_size;
#if defined(__NetBSD__)
- grub_hostdisk_configure_device_driver (fd);
+ configure_device_driver (fd);
#endif
if (ioctl (fd, DIOCGDINFO, &label) == -1)