[FFmpeg-devel] [PATCH] djgpp port
Diego Biurrun
diego
Mon Dec 24 09:11:56 CET 2007
On Mon, Dec 24, 2007 at 02:07:13AM +0300, Michael Kostylev wrote:
>
> At Sun, 23 Dec 2007 22:48:34 +0100,
> Diego Biurrun wrote:
>
> >> --- ffmpeg-export-2007-12-23/libavformat/os_support.c 2007-12-09 17:39:01.000000000 +0300
> >> +++ ffmpeg-export-2007-12-23_djgpp/libavformat/os_support.c 2007-12-23 12:27:37.000000000 +0300
> >> @@ -30,9 +30,11 @@
> >> #ifdef HAVE_WINSOCK2_H
> >> #include <winsock2.h>
> >> #else
> >> +#ifndef __DJGPP__
> >> #include <sys/select.h>
> >> #endif
> >> #endif
> >> +#endif
> > This would need to be done with a proper check in configure and
> > HAVE_SYS_SELECT_H instead.
>
> Redone.
>
> --- ffmpeg-export-2007-12-23/libavformat/os_support.c 2007-12-09 17:39:01.000000000 +0300
> +++ ffmpeg-export-2007-12-23_djgpp/libavformat/os_support.c 2007-12-24 01:18:53.000000000 +0300
> @@ -30,9 +30,11 @@
> #ifdef HAVE_WINSOCK2_H
> #include <winsock2.h>
> #else
> +#ifdef HAVE_SYS_SELECT_H
> #include <sys/select.h>
> #endif
> #endif
> +#endif
Use "#elif HAVE_SYS_SELECT_H" here, that will save an #endif.
Diego
More information about the ffmpeg-devel
mailing list