GNOME Bugzilla – Bug 651944
Fails to build on GNU/Hurd
Last modified: 2011-07-03 15:33:32 UTC
Created attachment 189273 [details] [review] compile fix d-conf 0.7.5 fails to build on GNU/Hurd (you can see [1] the failing build log from Debian's hurd-i386 architecture). The problem is the <sys/mount.h> system include, which is not present in Hurd. Looking at the statfs(2) man page, it would seem that statfs() is present in <sys/mount.h> on FreeBSD only, while in <sys/vfs.h> or <sys/statfs.h> in other systems. The attached patch does that, i.e include <sys/param.h> and <sys/mount.h> on FreeBSD only, while <sys/statfs.h> and <sys/vfs.h> elsewhere. It has been successfully tested on GNU/Hurd and GNU/Linux. [1] https://buildd.debian.org/status/fetch.php?pkg=d-conf&arch=hurd-i386&ver=0.7.5-1&stamp=1305710859
*** Bug 651937 has been marked as a duplicate of this bug. ***
commit 7b99c368158db2f622c1bb01de4bdde62270c2d0 Author: Ryan Lortie <desrt@desrt.ca> Date: Sun Jul 3 17:31:12 2011 +0200 Simplify 'shmdir' checks With XDG_RUNTIME_DIR, we no longer have to be frightened about NFS. That lets us remove the NFS checks that were causing build failures all over the place.