diff options
-rw-r--r-- | src/input/libdvdnav/bswap.h | 2 | ||||
-rw-r--r-- | src/input/libdvdnav/vm.c | 7 |
2 files changed, 7 insertions, 2 deletions
diff --git a/src/input/libdvdnav/bswap.h b/src/input/libdvdnav/bswap.h index ed5d2dade..dc4d6f655 100644 --- a/src/input/libdvdnav/bswap.h +++ b/src/input/libdvdnav/bswap.h @@ -65,7 +65,7 @@ * functionality! */ -#elif defined(__FreeBSD__) || defined(__sun) || defined(__bsdi__) || defined(WIN32) +#elif defined(__FreeBSD__) || defined(__sun) || defined(__bsdi__) || defined(WIN32) || defined(__CYGWIN__) #define B2N_16(x) \ x = ((((x) & 0xff00) >> 8) | \ (((x) & 0x00ff) << 8)) diff --git a/src/input/libdvdnav/vm.c b/src/input/libdvdnav/vm.c index c4120916d..aaa254fe2 100644 --- a/src/input/libdvdnav/vm.c +++ b/src/input/libdvdnav/vm.c @@ -19,7 +19,7 @@ * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA * - * $Id: vm.c,v 1.21 2003/04/29 21:55:53 jcdutton Exp $ + * $Id: vm.c,v 1.22 2003/05/26 23:11:44 miguelfreitas Exp $ * */ @@ -47,6 +47,11 @@ #define lseek64 lseek #endif /* _MSC_VER */ +#ifdef __CYGWIN__ +# define off64_t off_t +# define lseek64 lseek +#endif + /* #define STRICT */ |