mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-03-07 17:28:15 +00:00
tweak lstat.c to avoid mingw link failure
* gnulib/lib/lstat.c: Include <sys/stat.h> *before* the use of stat in orig_stat. Otherwise, on mingw (which lacks lstat), any program using the lstat module would not get the redefinition-to-stat provided by gnulib's sys/stat.h. Reported by Daniel P. Berrange.
This commit is contained in:
parent
0e7a565229
commit
1dea5535b0
@ -1,5 +1,11 @@
|
|||||||
Thu Nov 6 20:45:42 CET 2008 Jim Meyering <meyering@redhat.com>
|
Thu Nov 6 20:45:42 CET 2008 Jim Meyering <meyering@redhat.com>
|
||||||
|
|
||||||
|
tweak lstat.c to avoid mingw link failure
|
||||||
|
* gnulib/lib/lstat.c: Include <sys/stat.h> *before* the use of stat in
|
||||||
|
orig_stat. Otherwise, on mingw (which lacks lstat), any program using
|
||||||
|
the lstat module would not get the redefinition-to-stat provided by
|
||||||
|
gnulib's sys/stat.h. Reported by Daniel P. Berrange.
|
||||||
|
|
||||||
mark a few diagnostics for translation
|
mark a few diagnostics for translation
|
||||||
* src/lxc_conf.c (lxcLoadDriverConfig): Mark a diagnostic.
|
* src/lxc_conf.c (lxcLoadDriverConfig): Mark a diagnostic.
|
||||||
* src/lxc_driver.c (lxcDomainStart): Likewise.
|
* src/lxc_driver.c (lxcDomainStart): Likewise.
|
||||||
|
@ -25,15 +25,15 @@
|
|||||||
#include <sys/stat.h>
|
#include <sys/stat.h>
|
||||||
#undef __need_system_sys_stat_h
|
#undef __need_system_sys_stat_h
|
||||||
|
|
||||||
|
/* Specification. */
|
||||||
|
#include <sys/stat.h>
|
||||||
|
|
||||||
static inline int
|
static inline int
|
||||||
orig_lstat (const char *filename, struct stat *buf)
|
orig_lstat (const char *filename, struct stat *buf)
|
||||||
{
|
{
|
||||||
return lstat (filename, buf);
|
return lstat (filename, buf);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Specification. */
|
|
||||||
#include <sys/stat.h>
|
|
||||||
|
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <errno.h>
|
#include <errno.h>
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user