[Ffmpeg-devel] Re: compiling with gcc4 (on Mac OS X)

Iz Mir izmir
Tue May 3 17:10:57 CEST 2005


On May 3, 2005, at 10:49 AM, Iz Mir wrote:

> reinplace "s|typedef int socklen_t|typedef struct socklen_t|" \
>         ffmpeg/libavformat/tcp.c
>
> The second one I've never had to change on 10.3, but here is the  
> (only) part in <sys/socket.h>
>
> #ifndef _SOCKLEN_T
> #define _SOCKLEN_T
> typedef    __darwin_socklen_t    socklen_t;
> #endif

Oooops - i'm mixing things up because lots of other things need  
patching, the tcp.c file should be:

typedef uint32_t socklen_t

------------------------------------------------
Under 10.3 Panther in <ppc/ansi.h>

#define _BSD_SOCKLEN_T_ int32_t                 /* socklen_t (duh) */

under 10.4 Tiger in <ppc/_types.h>

typedef __uint32_t        __darwin_socklen_t;    /* socklen_t (duh) */

(the duh, comes right from the headers). I suppose echoing darwin8  
(for 10.4) or darwin7 (for 10.3) into config.mak might provide for  
finer granularity.





More information about the ffmpeg-devel mailing list