[FFmpeg-devel] [PATCH] socklen_t definition

Måns Rullgård mans
Mon Sep 17 12:42:54 CEST 2007


Diego Biurrun wrote:
> On Mon, Sep 17, 2007 at 05:56:52PM +0900, KO Myung-Hun wrote:
>>
>> Ah, like this ?
>>
>> --- configure	(revision 10425)
>> +++ configure	(working copy)
>> @@ -534,6 +535,23 @@
>>
>> +check_type(){
>> +    log check_type "$@"
>> +    headers=$1
>> +    type=$2
>> +    shift 2
>> +    disable $type
>> +    incs=""
>> +    for hdr in $headers; do
>> +        incs="$incs
>> +#include <$hdr>"
>> +    done
>> +    check_cc "$@" <<EOF && enable $type
>> +$incs
>> +$type v;
>> +EOF
>> +}
>
> AFAICT setting incs to "" is unnecessary.

It is necessary.  Otherwise you'd end up reusing whatever value it
had from a previous call.  POSIX sh doesn't have local variables,
unfortunately.

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




More information about the ffmpeg-devel mailing list