Conflict with st_dev/st_ino identifiers under Debian GNU/Hurd
authorSylvestre Ledru <sylvestre@debian.org>
Mon, 23 Apr 2012 16:37:23 +0000 (16:37 +0000)
committerSylvestre Ledru <sylvestre@debian.org>
Mon, 23 Apr 2012 16:37:23 +0000 (16:37 +0000)
commit9dc06bd431c826f068a5217718e2171303782f7a
tree9246af6ef2936f2f39ecc2a5ca5c6bc753367fae
parent55cabae685991ac6bc6d96b14e2139f64a0c9967
Conflict with st_dev/st_ino identifiers under Debian GNU/Hurd

The problem is that the struct file_status on UNIX systems has two
members called st_dev and st_ino; those are also members of the
struct stat, and they are reserved identifiers which can also be
provided as #define (and this is the case for st_dev on Hurd).
The solution (attached) is to rename them, for example adding a
"fs_" prefix (= file status) to them.

Patch by Pino Toscano

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@155354 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/Support/FileSystem.h
lib/Support/Unix/PathV2.inc