GNOME Bugzilla – Bug 679845
crash on OpenBSD: needs _XOPEN_SOURCE_EXTENDED for strptime(3)
Last modified: 2012-07-16 21:00:45 UTC
Created attachment 218698 [details] [review] add a define for _XOPEN_SOURCE_EXTENDED Hi. strptime(3) was introduced in XPG4. On OpenBSD, just defining _XOPEN_SOURCE gets you the older XPG3 wich doesn't include strptime(3). To get XPG4, you'll have to add #define _XOPEN_VERSION 4, but doing that may cause some issues. So it is probably better to just ask for XPG4v2 by adding #define _XOPEN_SOURCE_EXTENDED 1. This actually fix a runtime crash on OpenBSD when starting gnome-system-log. Thoughts?
Review of attachment 218698 [details] [review]: It looks fine to me, but does this have any other implications on Linux?
(In reply to comment #1) > Review of attachment 218698 [details] [review]: > > It looks fine to me, but does this have any other implications on Linux? Nope :-) Same patch was committed in evolution-data-server, eog and gthumb. https://bugzilla.gnome.org/show_bug.cgi?id=676462 https://bugzilla.gnome.org/show_bug.cgi?id=676461 https://bugzilla.gnome.org/show_bug.cgi?id=676108
Thanks, I pushed this to master for today's 3.5.4 release.