changeset 9798:02449faf87dd

MINGW32 port
author faust3
date Wed, 02 Apr 2003 16:52:00 +0000
parents 86e080e9c31f
children fc300cd01240
files libmpdemux/stream.c
diffstat 1 files changed, 4 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/libmpdemux/stream.c	Wed Apr 02 16:40:02 2003 +0000
+++ b/libmpdemux/stream.c	Wed Apr 02 16:52:00 2003 +0000
@@ -5,8 +5,10 @@
 
 #include <sys/types.h>
 #include <sys/stat.h>
+#ifndef __MINGW32__
 #include <sys/ioctl.h>
 #include <sys/wait.h>
+#endif
 #include <fcntl.h>
 #include <signal.h>
 #include <strings.h>
@@ -412,12 +414,14 @@
 
 void free_stream(stream_t *s){
 //  printf("\n*** free_stream() called ***\n");
+#ifdef USE_STREAM_CACHE
   if(s->cache_pid) {
 //    kill(s->cache_pid,SIGTERM);
     kill(s->cache_pid,SIGKILL);
     waitpid(s->cache_pid,NULL,0);
     shmem_free(s->cache_data);
   }
+#endif
   if(s->fd>0) close(s->fd);
   switch(s->type) {
 #ifdef LIBSMBCLIENT