Reported downstream at https://bugs.gentoo.org/show_bug.cgi?id=550758 When attempting to build old udisks-1.0.5 on a glibc-2.20 system: job-drive-detach.c: In function ‘sysfs_exists’: job-drive-detach.c:44:15: error: storage size of ‘statbuf’ isn’t known struct stat statbuf; ^ job-drive-detach.c:51:7: warning: implicit declaration of function ‘stat’ [-Wimplicit-function-declaration] if (stat (s, &statbuf) == 0) ^ job-drive-detach.c:51:3: warning: nested extern declaration of ‘stat’ [-Wnested-externs] if (stat (s, &statbuf) == 0) ^ job-drive-detach.c:44:15: warning: unused variable ‘statbuf’ [-Wunused-variable] struct stat statbuf; ^ job-drive-detach.c: In function ‘main’: job-drive-detach.c:110:15: error: storage size of ‘statbuf’ isn’t known struct stat statbuf; ^ job-drive-detach.c:110:15: warning: unused variable ‘statbuf’ [-Wunused-variable] Makefile:901: recipe for target 'udisks_helper_drive_detach-job-drive-detach.o' failed
Created attachment 116163 [details] [review] trivial patch
Thanks! I applied this to the old udisks1 branch, but please note that I won't make a new release. udisks 1.x has been deprecated for years already.
Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.