On 04/19/2010 10:50 AM, James Brown wrote:
>>
>> diff --git a/libclamav/c++/llvm/include/llvm/System/DataTypes.h.in
>> b/libclamav/c++/llvm/include/llvm/System/DataTypes.h.in
>> index 1f8ce79..879650b 100644
>> --- a/libclamav/c++/llvm/include/llvm/System/DataTypes.h.in
>> +++ b/libclamav/c++/llvm/include/llvm/System/DataTypes.h.in
>> @@ -105,7 +105,11 @@ typedef u_int64_t uint64_t;
>> #endif
>>
>> #ifndef HUGE_VALF
>> +#ifdef __GNUC__
>> +#define HUGE_VALF __builtin_huge_valf()
>> +#else
>> #define HUGE_VALF (float)HUGE_VAL
>> #endif
>> +#endif
>>
>> #endif  /* SUPPORT_DATATYPES_H */
> 
> Sorry if this is stupid question (I've never applied a patch before), what 
> what is the file I'm patching? When I know this, do I just run 'patch -p1 
> file_to_be_patched
file_containing_above_diff_info ?

You don't need to tell 'patch' which file to patch, since it knows
already: it is libclamav/c++/llvm/include/llvm/System/DataTypes.h.in.

So you do this: you copy+paste my patch to a file (lets say float.patch).
Then cd into the clamav source directory.
Then run 'patch -p1 </path/to/float.patch'.

Thats it, it should tell you it has successfully patched that file.

Best regards,
--Edwin
_______________________________________________
Help us build a comprehensive ClamAV guide: visit http://wiki.clamav.net
http://www.clamav.net/support/ml

Reply via email to