summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMiguel Freitas <miguelfreitas@users.sourceforge.net>2003-05-26 23:11:44 +0000
committerMiguel Freitas <miguelfreitas@users.sourceforge.net>2003-05-26 23:11:44 +0000
commitff2bd64f59e71236926a46d6f1abe5928dbf0cab (patch)
tree40ee34865e25f0562672121764a2ce4246ed2cb8
parente1250705268b9e1d19eaa6417fa76847cf34e67d (diff)
downloadxine-lib-ff2bd64f59e71236926a46d6f1abe5928dbf0cab.tar.gz
xine-lib-ff2bd64f59e71236926a46d6f1abe5928dbf0cab.tar.bz2
cygwin patch
CVS patchset: 4954 CVS date: 2003/05/26 23:11:44
-rw-r--r--src/input/libdvdnav/bswap.h2
-rw-r--r--src/input/libdvdnav/vm.c7
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
*/