[FFmpeg-devel] [PATCH] Fix pipes on OS/2

Måns Rullgård mans
Tue Jun 3 10:18:59 CEST 2008


Dave Yeo <daveryeo at telus.net> writes:

> Currently pipes are broken on OS/2 due to setmode() not being declared
> and pipes being opened in text mode. eg
> libavformat/file.c: In function `pipe_open':
> libavformat/file.c:106: warning: implicit declaration of function `setmode'
> Dave
> Index: libavformat/file.c
> ===================================================================
> --- libavformat/file.c	(revision 13644)
> +++ libavformat/file.c	(working copy)
> @@ -22,6 +22,7 @@
>  #include "libavutil/avstring.h"
>  #include "avformat.h"
>  #include <fcntl.h>
> +#include <io.h>
>  #include <unistd.h>
>  #include <sys/time.h>
>  #include <stdlib.h>

Rejected: io.h is not a standard header.

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




More information about the ffmpeg-devel mailing list