[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH] tweak lstat.c to avoid mingw link failure
From: |
Paolo Bonzini |
Subject: |
Re: [PATCH] tweak lstat.c to avoid mingw link failure |
Date: |
Wed, 12 Nov 2008 20:00:13 +0100 |
User-agent: |
Thunderbird 2.0.0.17 (Macintosh/20080914) |
Jim Meyering wrote:
> I needed this patch in libvirt to avoid a link error.
> FYI, there, lstat is pulled in solely via the dependency from tempname.
> Anyone see a problem with it?
I don't think it works if gnulib's sys/stat.h happens to redefine lstat
to rpl_lstat. What about instead doing
#ifdef HAVE_LSTAT
return lstat (filename, buf);
#else
return stat (filename, buf);
#endif
?
Paolo