Am 25.02.2011 10:50, schrieb kristof.vans...@telenet.be:
> This problem exist in the 2.7 and 2.8 branch:
> 
> 
> In file included from attr_clnt.c:77:
> /usr/include/unistd.h:329: error: conflicting types for 'closefrom'
> ./sys_defs.h:1399: error: previous declaration of 'closefrom' was here
> *** Error code 1
> 
> Stop in /home/src/postfix-2.7.2/src/util.
> *** Error code 1
> 
> Stop in /home/src/postfix-2.7.2.
> 
> Fix:
> 
>  
> 
> src/util/sys_defs.h
> 
> 114c114
> < #if (__FreeBSD_version >= 702104 && __FreeBSD_version < 800000) ||
> (__Fversion >= 800099)              /* safe; don't believe the experts */
> ---
>> #if __FreeBSD_version >= 800107               /* safe; don't believe
> thts */
> 

Hi Kristof,

dank je wel et merci. The fix per se looks sane to me, but the patch
doesn't apply to 2.8.1. "patch: **** Only garbage was found in the patch
input."

Could you please re-diff:

- in the proper direction (you had swapped unpatched and patched)

- in unified or context format (-c or -u option)

- without truncating lines.

As to the latter, *attach* the patch, so as to keep whitespace intact.

Copy & paste doesn't work well for patches, so (you may need other diff
options such as -r depending on whether you diff from the top-level
directory of a copy of the tree)

diff -c UNPATCHED PATCHED >somefile
# then, send mail and attach "somefile"

(I think I recall Wietse prefers context format.)

Best regards
Matthias

Reply via email to