[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: removed lchown.h and migrated lchown decl into unistd.h
From: |
Bruno Haible |
Subject: |
Re: removed lchown.h and migrated lchown decl into unistd.h |
Date: |
Sun, 17 Jun 2007 01:06:06 +0200 |
User-agent: |
KMail/1.5.4 |
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