Advertisement
Guest User

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

a guest
Aug 11th, 2014
37
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Diff 0.78 KB | None | 0 0
  1. From 48e4da7d6476ac2a62cc462478b8ccf4d0c45361 Mon Sep 17 00:00:00 2001
  2. From: Youka <spanknebel.borken@t-online.de>
  3. Date: Tue, 12 Aug 2014 04:32:02 +0200
  4. Subject: [PATCH] fix: 'make' with mingw32
  5.  
  6. 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.
  7. ---
  8. libavutil/time.c | 4 ++++
  9.  1 file changed, 4 insertions(+)
  10.  
  11. diff --git a/libavutil/time.c b/libavutil/time.c
  12. index ce4552e..a286fca 100644
  13. --- a/libavutil/time.c
  14. +++ b/libavutil/time.c
  15. @@ -31,6 +31,10 @@
  16.  #endif
  17.  #if HAVE_WINDOWS_H
  18.  #include <windows.h>
  19. +#if HAVE_NANOSLEEP
  20. +#include <pthread.h>
  21. +#include <pthread_time.h>
  22. +#endif
  23.  #endif
  24.  
  25.  #include "time.h"
  26. --
  27. 1.8.4.msysgit.0
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement