diff -u cpmtools-2.0.orig/device.h cpmtools-2.0/device.h
--- cpmtools-2.0.orig/device.h	Mon Oct  8 19:02:22 2001
+++ cpmtools-2.0/device.h	Sat Apr 20 19:46:22 2002
@@ -16,7 +16,7 @@
   int tracks;
   int sectrk;
 #if HAVE_LIBDSK_H
-  DSK_DRIVER   *dev;
+  DSK_PDRIVER   dev;
   DSK_GEOMETRY geom; 
 #endif
 #if HAVE_WINDOWS_H
diff -u cpmtools-2.0.orig/device_libdsk.c cpmtools-2.0/device_libdsk.c
--- cpmtools-2.0.orig/device_libdsk.c	Mon Oct  8 19:02:22 2001
+++ cpmtools-2.0/device_libdsk.c	Sat Apr 20 19:46:42 2002
@@ -19,7 +19,7 @@
 /* Device_open           -- Open an image file                      */ /*{{{*/
 const char *Device_open(struct Device *this, const char *filename, int mode, const char *deviceOpts)
 {
-  dsk_err_t e = dsk_open(&this->dev, filename, deviceOpts);
+  dsk_err_t e = dsk_open(&this->dev, filename, deviceOpts, NULL);
   this->opened = 0;
   if (e) return dsk_strerror(e);
   this->opened = 1;
