Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- From 48e4da7d6476ac2a62cc462478b8ccf4d0c45361 Mon Sep 17 00:00:00 2001
- From: Youka <spanknebel.borken@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
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement