Index: src/dvd_reader.c
===================================================================
--- src/dvd_reader.c	(revision 1199)
+++ src/dvd_reader.c	(working copy)
@@ -340,7 +340,7 @@
   char *dev_name = NULL;
   char *path = NULL, *new_path = NULL, *path_copy = NULL;

-#ifdef _WIN32
+#if defined(_WIN32) || defined(__OS2__)
       int len;
 #endif

@@ -354,7 +354,7 @@
   /* Try to open libdvdcss or fall back to standard functions */
   have_css = dvdinput_setup();

-#ifdef _WIN32
+#if defined(_WIN32) || defined(__OS2__)
   /* Strip off the trailing \ if it is not a drive */
   len = strlen(path);
   if ((len > 1) &&

