diff options
author | Jim Meyering <meyering@redhat.com> | 2008-11-07 16:44:38 +0000 |
---|---|---|
committer | Jim Meyering <meyering@redhat.com> | 2008-11-07 16:44:38 +0000 |
commit | 1dea5535b017a169c4e89172583ed168307e8c8d (patch) | |
tree | a68484137f84b940afdfdfa04fffedcf5f37d6b6 /gnulib | |
parent | mark a few diagnostics for translation (diff) | |
download | libvirt-1dea5535b017a169c4e89172583ed168307e8c8d.tar.gz libvirt-1dea5535b017a169c4e89172583ed168307e8c8d.tar.bz2 libvirt-1dea5535b017a169c4e89172583ed168307e8c8d.zip |
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.
Diffstat (limited to 'gnulib')
-rw-r--r-- | gnulib/lib/lstat.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/gnulib/lib/lstat.c b/gnulib/lib/lstat.c index 3d1bca895..aa5e8c421 100644 --- a/gnulib/lib/lstat.c +++ b/gnulib/lib/lstat.c @@ -25,15 +25,15 @@ #include <sys/stat.h> #undef __need_system_sys_stat_h +/* Specification. */ +#include <sys/stat.h> + static inline int orig_lstat (const char *filename, struct stat *buf) { return lstat (filename, buf); } -/* Specification. */ -#include <sys/stat.h> - #include <string.h> #include <errno.h> |