Closed vp1981 closed 9 years ago
I can confirm this. Gentoo bug 552072 indicates that GCC 5.x will error out with output similar to:
device-info.c: In function 'info_mount_points':
device-info.c:943:33: error: implicit declaration of function 'stat' [-Werror=implicit-function-declaration]
stat( mount_source, &statbuf ) == 0 &&
^
device-info.c:944:33: error: implicit declaration of function 'S_ISBLK' [-Werror=implicit-function-declaration]
S_ISBLK( statbuf.st_mode ) )
^
I've applied this patch downstream and confirm that it works.
Thanks - merged into next.
Hello, please consider the following patch:
(gist: https://gist.github.com/vp1981/9b99f400472caf1d55df)
Rationale: as 'device-info.c' uses 'stat' function then 'device-info.h' must explicitly include 'sys/stat.h' header.