After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 789812 - error: use of undeclared identifier 'O_PATH'
error: use of undeclared identifier 'O_PATH'
Status: RESOLVED FIXED
Product: recipes
Classification: Other
Component: general
unspecified
Other OpenBSD
: Normal normal
: ---
Assigned To: Recipes maintainer(s)
Recipes maintainer(s)
Depends on:
Blocks:
 
 
Reported: 2017-11-02 11:06 UTC by Jasper Lievisse Adriaanse
Modified: 2017-11-04 17:57 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Jasper Lievisse Adriaanse 2017-11-02 11:06:55 UTC
The build of gnome-recipes fails on OpenBSD (and any other non-glibc platform I reckon) due to the use of the non-standard O_PATH flag:

../gnome-recipes-2.0.0/src/gr-mail.c:287:58: error: use of undeclared identifier 'O_PATH'
fd = g_open (md->attachments[i], O_PATH | O_CLOEXEC);

POSIX doesn't appear to define this flag, only glibc. Could it be made optional and only use it when defined?

This is with gnome-recipes 2.0, but git master has the same code.