[PATCH] Fix for [f]statfs64/[f]statfs aliasing patch
Andreas Schwab
schwab@suse.de
Thu Nov 24 08:53:00 GMT 2016
On Nov 23 2016, Steve Ellcey <sellcey@caviumnetworks.com> wrote:
> This patch fixes the problem by only hiding the [f]statfs definitions if
> STATFS_IS_STATFS64 is set to non-zero, which is also the only time we do the
> aliasing.  To do this I had to change the order of the includes because we
> cannot check STATFS_IS_STATFS64 until after we have included kernel_stat.h
> but we must do it before including sys/stat.h which is where the [f]statfs
> prototypes are defined.
A simpler approach would probably be to move the #undef up directly
after the include.
Ok either way.
Andreas.
--
Andreas Schwab, SUSE Labs, schwab@suse.de
GPG Key fingerprint = 0196 BAD8 1CE9 1970 F4BE 1748 E4D4 88E3 0EEA B9D7
"And now for something completely different."
More information about the Libc-alpha
mailing list