[FFmpeg-devel] [Patch] OS/2 and recent updates, libavnet?

Måns Rullgård mans
Sat Nov 24 19:06:12 CET 2007


Dave Yeo <daveryeo at telus.net> writes:

> Hi, with recent commits, I think to do with libavnet though it is hard
> to keep track of all the patches here :) I have a couple of small
> problems building ffmpeg on OS/2 using the alternative OS/2 patch
> referred to in a different thread.
> ...
> rtpproto.c: In function `rtp_read':
> rtpproto.c:173: error: `socklen_t' undeclared (first use in this function)
> ...
> ffserver.c: In function `http_server':
> ffserver.c:516: error: storage size of `poll_table' isn't known
> ...
>
> This patch fixes it for me for now though perhaps I should wait for
> net_os_support.h to be committed.
> Also updated a comment in os_support.h to make clear that innotek_libc
> does not have poll.
> Dave
> Index: ffserver.c
> ===================================================================
> --- ffserver.c	(revision 11085)
> +++ ffserver.c	(working copy)
> @@ -28,6 +28,7 @@
>  #include "avformat.h"
>  #include "rtsp.h"
>  #include "rtp.h"
> +#include "os_support.h"
>  
>  #include <stdarg.h>
>  #include <unistd.h>
> Index: libavformat/rtpproto.c
> ===================================================================
> --- libavformat/rtpproto.c	(revision 11085)
> +++ libavformat/rtpproto.c	(working copy)
> @@ -24,6 +24,7 @@
>  #include <unistd.h>
>  #include <stdarg.h>
>  #include "network.h"
> +#include "os_support.h"
>  #include <fcntl.h>
>  
>  #define RTP_TX_BUF_SIZE  (64 * 1024)

I agree with Michael these are OK.

> Index: libavformat/os_support.h
> ===================================================================
> --- libavformat/os_support.h	(revision 11085)
> +++ libavformat/os_support.h	(working copy)
> @@ -30,7 +30,7 @@
>   * - usleep() (Win32, BeOS)
>   * - lseek() (Win32)
>   * - closesocket()
> - * - poll() (BeOS, MinGW)
> + * - poll() (BeOS, MinGW, Innotek libc)
>   */
>  
>  #if defined(__BEOS__) || defined(__INNOTEK_LIBC__)

Changing the comment isn't likely to fix or break anything...

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




More information about the ffmpeg-devel mailing list