diff options
| author | František Dvořák <valtri@users.sourceforge.net> | 2006-09-17 13:01:07 +0000 |
|---|---|---|
| committer | František Dvořák <valtri@users.sourceforge.net> | 2006-09-17 13:01:07 +0000 |
| commit | 809a64d5911496a24617e3158e719e93c161e582 (patch) | |
| tree | 931b908c4a47be9acae7fd6a916a0e9ae0e55847 /src/input/libdvdnav/dvd_reader.c | |
| parent | a4f82c060ea232d998a7d1162768b4efb9dfd67e (diff) | |
| download | xine-lib-809a64d5911496a24617e3158e719e93c161e582.tar.gz xine-lib-809a64d5911496a24617e3158e719e93c161e582.tar.bz2 | |
DVDNAV changes:
improve MinGW support, kFreeBSD support
define HAVE_* when provided replacement functions in xine-lib
CVS patchset: 8268
CVS date: 2006/09/17 13:01:07
Diffstat (limited to 'src/input/libdvdnav/dvd_reader.c')
| -rw-r--r-- | src/input/libdvdnav/dvd_reader.c | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/src/input/libdvdnav/dvd_reader.c b/src/input/libdvdnav/dvd_reader.c index 6997f5bb2..e71d6ca42 100644 --- a/src/input/libdvdnav/dvd_reader.c +++ b/src/input/libdvdnav/dvd_reader.c @@ -32,8 +32,13 @@ #include <limits.h> #include <dirent.h> -/* misc win32 helpers */ -#ifdef WIN32 +#ifndef HAVE_GETTIMEOFDAY +# ifdef WIN32 +# include <winsock.h> +struct timezone; +# else +# include <sys/time.h> +# endif /* replacement gettimeofday implementation */ #include <sys/timeb.h> static inline int _private_gettimeofday( struct timeval *tv, void *tz ) @@ -45,6 +50,10 @@ static inline int _private_gettimeofday( struct timeval *tv, void *tz ) return 0; } #define gettimeofday(TV, TZ) _private_gettimeofday((TV), (TZ)) +#endif + +/* misc win32 helpers */ +#ifdef WIN32 #include <io.h> /* read() */ #define lseek64 _lseeki64 #endif |
