[FFmpeg-devel] [PATCH] fix: 'make' with mingw32

spanknebel.borken at t-online.de spanknebel.borken at t-online.de
Tue Aug 12 05:48:57 CEST 2014


>From 48e4da7d6476ac2a62cc462478b8ccf4d0c45361 Mon Sep 17 00:00:00 2001
From: Youka <spanknebel.borken at t-online.de>
Date: Tue, 12 Aug 2014 04:32:02 +0200
Subject: [PATCH] fix: 'make' with mingw32

Older mingw32 compilers (not mingw-64, but tdm [default by IDE C::B]) don't auto-include pthread headers, so struct timespec & nanosleep are missing for compilation of libavutil/time.c.
---
 libavutil/time.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/libavutil/time.c b/libavutil/time.c
index ce4552e..a286fca 100644
--- a/libavutil/time.c
+++ b/libavutil/time.c
@@ -31,6 +31,10 @@
 #endif
 #if HAVE_WINDOWS_H
 #include <windows.h>
+#if HAVE_NANOSLEEP
+#include <pthread.h>
+#include <pthread_time.h>
+#endif
 #endif
 
 #include "time.h"
-- 
1.8.4.msysgit.0




More information about the ffmpeg-devel mailing list