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

Jeff Lu jll544 at yahoo.com
Thu Nov 5 05:34:12 UTC 2009

>Adding unistd.h in compat.h breaks pthread.c

>compile down in MinGW GCC headers. cf #5980.

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.


More information about the mythtv-dev mailing list