diff options
author | Clint Adams <clint@debian.org> | 2017-01-04 20:39:58 -0500 |
---|---|---|
committer | Clint Adams <clint@debian.org> | 2017-01-04 20:39:58 -0500 |
commit | 29d3f78df4630dbee0a141e2be8e77275724b3a8 (patch) | |
tree | 89a97129c5b799046be2af10bde88ea035b59bd1 /lib/same-inode.h | |
parent | d75f3c567505ad7acd2c1943207b367593652739 (diff) |
New upstream version 4.3
Diffstat (limited to 'lib/same-inode.h')
-rw-r--r-- | lib/same-inode.h | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/lib/same-inode.h b/lib/same-inode.h index 8c3900d..c7a8fb5 100644 --- a/lib/same-inode.h +++ b/lib/same-inode.h @@ -1,6 +1,6 @@ -/* Determine whether two stat buffers refer to the same file. +/* Determine whether two stat buffers are known to refer to the same file. - Copyright (C) 2006, 2009-2012 Free Software Foundation, Inc. + Copyright (C) 2006, 2009-2016 Free Software Foundation, Inc. This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -24,6 +24,10 @@ && (a).st_ino[1] == (b).st_ino[1] \ && (a).st_ino[2] == (b).st_ino[2] \ && (a).st_dev == (b).st_dev) +# elif (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__ +/* On MinGW, struct stat lacks necessary info, so always return 0. + Callers can use !a.st_ino to deduce that the information is unknown. */ +# define SAME_INODE(a, b) 0 # else # define SAME_INODE(a, b) \ ((a).st_ino == (b).st_ino \ |