pkgsrc/sysutils/k3b/patches/patch-ad
2007-08-04 23:21:11 +00:00

29 lines
813 B
Text

$NetBSD: patch-ad,v 1.5 2007/08/04 23:21:11 markd Exp $
--- libk3bdevice/k3bdevicemanager.cpp.orig 2007-07-22 07:53:25.000000000 +1200
+++ libk3bdevice/k3bdevicemanager.cpp
@@ -99,6 +99,7 @@ typedef unsigned char u8;
#ifdef Q_OS_NETBSD
#include <sys/scsiio.h>
+#include <util.h>
#endif
@@ -324,13 +325,9 @@ void K3bDevice::DeviceManager::NetBSDDev
int i;
- // Whole disk mask (According to cd(4), the AMD64, i386 and BeBox ports use
- // 'd' as whole-disk partition, the rest uses 'c'.)
-
-#if defined(__i386__) || defined (__amd64__) || defined (__bebox__)
- static const char slicename = 'd';
-#else
- static const char slicename = 'c';
+ static char slicename = 'a';
+#ifdef Q_OS_NETBSD
+ slicename += getrawpartition();
#endif
char devicename[11]; // /dev/rcdXd + trailing zero