瀏覽代碼

*** empty log message ***

Cary Sandvig 25 年之前
父節點
當前提交
ab39318a14
共有 3 個文件被更改,包括 13 次插入0 次删除
  1. 2 0
      panda/src/mpg123/common.c
  2. 6 0
      panda/src/mpg123/mpgbuffer.c
  3. 5 0
      panda/src/mpg123/xfermem.c

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

@@ -6,7 +6,9 @@
 
 #include <sys/types.h>
 #include <sys/stat.h>
+#ifndef WIN32
 #include <sys/time.h>
+#endif /* WIN32 */
 
 #include <fcntl.h>
 

+ 6 - 0
panda/src/mpg123/mpgbuffer.c

@@ -10,6 +10,12 @@
 
 #include "mpg123.h"
 
+#ifdef WIN32
+#define SIGUSR1 0
+#define SIGCONT 0
+#define SIGSTOP 0
+#endif /* WIN32 */
+
 int outburst = MAXOUTBURST;
 int preload;
 

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

@@ -26,6 +26,7 @@
 #endif
 
 #include "mpg123.h"
+#define HAVE_INCLUDED_MPG123_H
 
 #ifndef USE_MMAP
 #include <sys/ipc.h>
@@ -233,7 +234,11 @@ int xfermem_block (int readwrite, txfermem *xf)
 #include <sys/types.h>
 #include <fcntl.h>
 
+#ifndef HAVE_INCLUDED_MPG123_H
+#include "mpg123.h"
+#else /* HAVE_INCLUDED_MPG123_H */
 #include "xfermem.h"
+#endif /* HAVE_INCLUDED_MPG123_H */
 
 extern int errno;