Paul Eggert wrote:
> I installed this into gnulib to clean up the lchown declaration
> situation.
Nice. Since users of this module must update their code, I added this mention
in the NEWS file:
Date Modules Changes
2007-06-16 lchown The include file is changed from "lchown.h" to
<unistd.h>.
> The only tricky bit was to convince unistd.h to not
> replace chown when compiling lchown.c, when lchown.c wants a
> nonstandard system chown that doesn't follow symlinks.
Wouldn't a simple
#include <unistd.h>
#undef chown
have done it as well (assuming 'chown' is defined as a function, not as a
macro)?
Bruno