changeset 204:abb25c194c1b src

patch for compiling under cygwin. it seems that cygwin doesn't provide neither byteswap.h or endian.h. by: Miguel Freitas
author jcdutton
date Fri, 23 May 2003 22:12:51 +0000
parents 719d007d0639
children ba43bdbb07e8
files bswap.h vm.c
diffstat 2 files changed, 6 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/bswap.h	Sun May 18 19:55:39 2003 +0000
+++ b/bswap.h	Fri May 23 22:12:51 2003 +0000
@@ -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))
--- a/vm.c	Sun May 18 19:55:39 2003 +0000
+++ b/vm.c	Fri May 23 22:12:51 2003 +0000
@@ -47,6 +47,11 @@
 #define lseek64 lseek
 #endif /* _MSC_VER */
 
+#ifdef __CYGWIN__
+# define off64_t off_t
+# define lseek64 lseek
+#endif
+
 /*
 #define STRICT
 */