changeset 6334:5becd843ff47

cygwin & darwin fixes by Joey Parrish <joey@yunamusic.com>
author arpi
date Fri, 07 Jun 2002 22:41:26 +0000
parents 69e14bf9e223
children e9bd97d5c5cc
files configure libmpdemux/demux_mov.c
diffstat 2 files changed, 4 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/configure	Fri Jun 07 22:40:06 2002 +0000
+++ b/configure	Fri Jun 07 22:41:26 2002 +0000
@@ -1646,6 +1646,7 @@
 
 echocheck "sys/cdio.h"
 cat > $TMPC << EOF
+#include <unistd.h>
 #include <sys/cdio.h>
 int main(void) { return 0; }
 EOF
@@ -3725,7 +3726,7 @@
 fi
 if darwin ; then
   # use gnu style cpp on Darwin
-  CFLAGS="$CFLAGS -no-cpp-precomp"
+  CFLAGS="$CFLAGS -no-cpp-precomp -DSYS_DARWIN"
 fi
 # Thread support
 if linux ; then
--- a/libmpdemux/demux_mov.c	Fri Jun 07 22:40:06 2002 +0000
+++ b/libmpdemux/demux_mov.c	Fri Jun 07 22:41:26 2002 +0000
@@ -42,7 +42,9 @@
 #include <zlib.h>
 #endif
 
+#if !defined(__CYGWIN__)
 #include <fcntl.h>
+#endif
 
 #define BE_16(x) (be2me_16(*(unsigned short *)(x)))
 #define BE_32(x) (be2me_32(*(unsigned int *)(x)))