~ubuntu-branches/ubuntu/raring/libdvdread/raring-proposed

« back to all changes in this revision

Viewing changes to .pc/05-hurd.patch/src/dvd_reader.c

  • Committer: Package Import Robot
  • Author(s): Vibhav Pant
  • Date: 2012-12-15 17:06:42 UTC
  • mfrom: (1.3.2) (3.2.15 sid)
  • Revision ID: package-import@ubuntu.com-20121215170642-q0h4cc4r2mchkgcl
Tags: 4.2.0+20121016-1ubuntu1
* Merge from Debian unstable (LP: #1090692).  Remaining changes:
  - Re-add missing install-css.sh.
  - debian/control: add Suggests for install-css.sh on debhelper,
    fakeroot, and build-essential.
  - debian/rules: install install-css.sh, leave perms executable.

Show diffs side-by-side

added added

removed removed

Lines of Context:
35
35
 
36
36
/* misc win32 helpers */
37
37
#ifdef WIN32
 
38
#include <windows.h>
38
39
#ifndef HAVE_GETTIMEOFDAY
39
40
/* replacement gettimeofday implementation */
40
41
#include <sys/timeb.h>
548
549
      }
549
550
      fclose( mntfile );
550
551
    }
551
 
#elif defined(_WIN32) || defined(__OS2__)
552
 
#ifdef __OS2__
 
552
#elif defined(__OS2__)
553
553
    /* Use DVDOpenImageFile() only if it is a drive */
554
554
    if(isalpha(path[0]) && path[1] == ':' &&
555
555
        ( !path[2] ||
556
556
          ((path[2] == '\\' || path[2] == '/') && !path[3])))
557
 
#endif
558
557
    auth_drive = DVDOpenImageFile( path, have_css );
 
558
#elif defined(_WIN32)
 
559
    if( GetDriveType( path_copy ) == DRIVE_CDROM ) {
 
560
      path_copy[2] = '\0';
 
561
      auth_drive = DVDOpenImageFile( path_copy, have_css );
 
562
    }
559
563
#endif
560
564
 
561
565
#if !defined(_WIN32) && !defined(__OS2__)