[FFmpeg-devel] [PATCH] Fix compilation issue on Mac OS X with 10.3.9 SDK

Måns Rullgård mans
Sat Jul 11 19:35:11 CEST 2009


Patrice Bensoussan <patrice.bensoussan at free.fr> writes:

> Hello,
>
> Here is a patch to fix an issue when compiling with 10.3.9 SDK on Mac
> OS X for ppc. Basically, sys/resource.h is using struct timeval which
> is actually defined in sys/time.h
>
> Patrice
>
>
> Index: ffmpeg.c
> ===================================================================
> --- ffmpeg.c	(revision 19400)
> +++ ffmpeg.c	(working copy)
> @@ -43,6 +43,7 @@
>
>  #if HAVE_SYS_RESOURCE_H
>  #include <sys/types.h>
> +#include <sys/time.h>
>  #include <sys/resource.h>
>  #elif HAVE_GETPROCESSTIMES
>  #include <windows.h>




More information about the ffmpeg-devel mailing list