[Ffmpeg-devel] macosx compilation support patch

Måns Rullgård mans
Wed Feb 21 12:56:21 CET 2007


Marc Hoffman said:
> sys/time.h is needed on MACOSX to get the definition of timeval.
>
> Index: libavformat/rtsp.c
> ===================================================================
> --- libavformat/rtsp.c        (revision 8047)
> +++ libavformat/rtsp.c        (working copy)
> @@ -20,6 +20,10 @@
>   */
>  #include "avformat.h"
>
> +#ifdef CONFIG_DARWIN
> +#include <sys/time.h>
> +#endif

Useless #ifdef.  Unconditionally #including sys/time.h should be harmless.

-- 
M?ns Rullg?rd
mans at mansr.com




More information about the ffmpeg-devel mailing list