[mythtv] win32 compilation issues on HEAD - patch

buzz davidbuzz at gmail.com
Tue Nov 25 00:07:54 UTC 2008


Index: libs/libavcodec/pthread.c
===================================================================
--- libs/libavcodec/pthread.c (revision 19153)
+++ libs/libavcodec/pthread.c (working copy)
@@ -21,10 +21,14 @@
  * License along with FFmpeg; if not, write to the Free Software
  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301
USA
  */
+#include "../libmythdb/compat.h"
+
 #include <pthread.h>

 #include "avcodec.h"

 typedef int (action_t)(AVCodecContext *c, void *arg);

 typedef struct ThreadContext {
Index: libs/libmythdvdnav/bswap.h
===================================================================
--- libs/libmythdvdnav/bswap.h (revision 19153)
+++ libs/libmythdvdnav/bswap.h (working copy)
@@ -71,7 +71,7 @@
  * functionality!
  */

-#elif defined(__FreeBSD__) || defined(__sun) || defined(__bsdi__) ||
defined(WIN32) || defined(__CYGWIN__)
+#elif defined(__FreeBSD__) || defined(__sun) || defined(__bsdi__) ||
defined(_WIN32) || defined(__CYGWIN__)
 #define B2N_16(x) \
  x = ((((x) & 0xff00) >> 8) | \
       (((x) & 0x00ff) << 8))



 I've been having issues with 'uint' not being defined, so I've also had to
change mingw's sched.h to have this stanza inserted at line 127:
c:\MinGW\include\sched.h
/* pid_t again! */
#if defined(__MINGW32__) || defined(_UWIN)
/* Define to `int' if <sys/types.h> does not define. */
/* GCC 4.x reportedly defines pid_t. */
#ifndef _PID_T_
#define pid_t int
#endif
#endif

can anyone else compiling on win32 replicated my problem/s on HEAD?

Buzz.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mythtv.org/pipermail/mythtv-dev/attachments/20081125/d8f83efb/attachment.htm 


More information about the mythtv-dev mailing list