GNOME Bugzilla – Bug 708860
glib-2.38.0 doesn't build on Solaris 10
Last modified: 2013-09-26 19:42:03 UTC
Created attachment 255865 [details] [review] Detects and uses O_DIRECTORY Broken by https://git.gnome.org/browse/glib/commit/?id=6ec2bb17c393c411a2182e865aa0979165dfbac5 Solaris 10's open doesn't have O_DIRECTORY. This patch detects presence of O_DIRECTORY and uses it if the OS has support for it.
Review of attachment 255865 [details] [review]: Hm, does it really work to just open() a directory on Solaris without using O_DIRECTORY? In other words did you actually test this patch?
On Solaris, open only fails if you try and open a directory O_RDWR or O_WRONLY
I also tested with the gio-du test, which worked fine. [ worr on solaris ] ( tests ) % ./gio-du -h /export/home/worr /export/home/worr: 120.4 MB (464 dirs, 5406 files)
Great, thanks! I made a minor adjustment of prefixing the AC_DEFINE value with HAVE_, which is more conventional, and tweaked the commit message. Thanks for the patch! https://git.gnome.org/browse/glib/commit/?id=7eb1e5fc5bc5aa6744bd516463ca2d65104c5a4e
No problem, and thanks for the quick turnaround!