Created attachment 405128 [details, diff] patch to include sys/stat.h udevil-0.4.4 fails to compile (under gcc 5.x, at least) with 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 ) ) ^ The attached patch includes sys/stat.h to fix this.
Patch works here. Thank you.
I've added the patch to the tree. It's applied in udevil-0.4.4-r1. Please update as needed. Upstream's GitHub project also contains an Issue reporting this. I confirmed the bug upstream, so maybe it'll be merged for a later version. Thanks for reporting!