GNOME Bugzilla – Bug 737369
solaris build fix
Last modified: 2015-08-03 16:14:54 UTC
Solaris doesn't have an equivalent of O_DIRECTORY, so only use it if it is defined. Amusingly this bug seems to have been predicted by the comment: /* Linux specific probably */ The O_DIRECTORY build failure was encountered in libgnome-desktop/libgsystem/gsystem-file-utils.c, but "fixing" the other occurence just in case.
Created attachment 287085 [details] [review] solaris build fix
Review of attachment 287085 [details] [review]: Isn't this easier to read? #ifndef O_DIRECTORY #define O_DIRECTORY 0 #endif
Created attachment 287506 [details] [review] more readable fix Yes, that is neater!
Good to commit (trivial O_DIRECTORY fix)
I forgot the question mark - presumably OK to commit the trivial O_DIRECTORY fix?
This isn't needed since 3.15.90, as gsystem use was removed.