diff options
author | Mike Frysinger <vapier@gentoo.org> | 2016-01-06 19:51:28 -0500 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2016-01-07 14:37:09 -0500 |
commit | 1f89b8d881b5dda6447b8be8ff40c1020b1f548e (patch) | |
tree | 24b3c5ebba6aa165b68c4ea27c18c393f8600329 /sysdeps/unix/sysv/linux/xstatconv.c | |
parent | 670a687dea6773147a227bebfa9d801dae739ee0 (diff) | |
download | glibc-1f89b8d881b5dda6447b8be8ff40c1020b1f548e.tar.gz |
xstat: only check to see if __ASSUME_ST_INO_64_BIT is defined
We define __ASSUME_ST_INO_64_BIT by default for Linux targets, and then
undef it for alpha/sh targets. But the code that uses it looks at its
value (as 0/1) rather than whether it's defined (like all other assume
knobs). Change the code to see if it's defined to fix build Wundef build
errors for alpha/sh.
Diffstat (limited to 'sysdeps/unix/sysv/linux/xstatconv.c')
-rw-r--r-- | sysdeps/unix/sysv/linux/xstatconv.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sysdeps/unix/sysv/linux/xstatconv.c b/sysdeps/unix/sysv/linux/xstatconv.c index 9d775f6ca9..c5fbf3d8bf 100644 --- a/sysdeps/unix/sysv/linux/xstatconv.c +++ b/sysdeps/unix/sysv/linux/xstatconv.c @@ -190,7 +190,7 @@ __xstat32_conv (int vers, struct stat64 *kbuf, struct stat *buf) buf->__pad1 = 0; #endif #ifdef _HAVE_STAT64___ST_INO -# if __ASSUME_ST_INO_64_BIT == 0 +# ifndef __ASSUME_ST_INO_64_BIT if (kbuf->st_ino == 0) buf->st_ino = kbuf->__st_ino; else |