[mythtv] [mythtv-commits] Ticket #7288: mythmainwindow needs include unistd.h after [22350] for win32

Daniel Kristjansson danielk at cuymedia.net
Fri Nov 6 02:22:45 UTC 2009


On Fri, 2009-11-06 at 10:35 +1100, Nigel Pearson wrote:
> > One way to resolve this is adding a line before the #endif's in the  
> > sched.h patch from #5980:
> > #define _pid_t pid_t
> >
> > Normally, types.h (included from unistd.h) defines both pid_t and  
> > _pid_t, but in this case, sched.h (included from pthread.h) is  
> > processed first and leaves _pid_t undefined.
> 
> Even better - put compat.h before pthread.h in libavformat/mpegts.c!
> 
> Thanks for the hunt, Jeff. I will commit something soon.

compat.h should not go in libavformat/mpegts.c. libavformat should
not depend on any MythTV specific headers. I believe ffmpeg compiles
under MINGW, so we should be able to use whatever is used upstream.

-- Daniel



More information about the mythtv-dev mailing list