Browse Source

fix prev checkin

cxgeorge 25 years ago
parent
commit
80df4bfae2
4 changed files with 10 additions and 1 deletions
  1. 2 0
      panda/src/mpg123/audio.c
  2. 4 1
      panda/src/mpg123/common.c
  3. 2 0
      panda/src/mpg123/readers.c
  4. 2 0
      panda/src/mpg123/xfermem.c

+ 2 - 0
panda/src/mpg123/audio.c

@@ -1,6 +1,8 @@
 
 #include "mpg123.h"
+#ifdef WIN32
 #include <io.h>
+#endif
 #include <stdlib.h>
 
 void audio_info_struct_init(struct audio_info_struct *ai)

+ 4 - 1
panda/src/mpg123/common.c

@@ -10,8 +10,11 @@
 #include <sys/time.h>
 #endif /* WIN32 */
 
-#include <fcntl.h>
+#ifdef WIN32
 #include <io.h>
+#endif
+
+#include <fcntl.h>
 
 #ifdef READ_MMAP
 #include <sys/mman.h>

+ 2 - 0
panda/src/mpg123/readers.c

@@ -3,7 +3,9 @@
 #include <sys/types.h>
 #include <sys/stat.h>
 #include <fcntl.h>
+#ifdef WIN32
 #include <io.h>
+#endif
 #include "mpg123.h"
 #include "mpgbuffer.h"
 #include "common.h"

+ 2 - 0
panda/src/mpg123/xfermem.c

@@ -20,7 +20,9 @@
 #include <sys/mman.h>
 #include <sys/socket.h>
 #include <fcntl.h>
+#ifdef WIN32
 #include <io.h>
+#endif
 
 #ifdef AIX
 #include <sys/select.h>