[FFmpeg-devel] [PATCH 2/4] libavutil/time: fix build with musl toolchain
Jörg Krause
jkrause at posteo.de
Tue Sep 2 12:36:08 CEST 2014
Add the feature test macro which is required for building with the
musl toolchain.
The required feature test macro is:
nanosleep(): _POSIX_C_SOURCE >= 199309L
Signed-off-by: Jörg Krause <jkrause at posteo.de>
---
libavutil/time.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/libavutil/time.c b/libavutil/time.c
index ce4552e..52eed4b 100644
--- a/libavutil/time.c
+++ b/libavutil/time.c
@@ -18,6 +18,8 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
+#define _POSIX_C_SOURCE 199309L
+
#include "config.h"
#include <stddef.h>
--
2.1.0
More information about the ffmpeg-devel
mailing list