Index: libs/libavcodec/pthread.c
===================================================================
--- libs/libavcodec/pthread.c	(revision 19247)
+++ libs/libavcodec/pthread.c	(working copy)
@@ -21,6 +21,8 @@
  * 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"
