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 676462 - build: OpenBSD needs _XOPEN_SOURCE_EXTENDED for strptime(3)
build: OpenBSD needs _XOPEN_SOURCE_EXTENDED for strptime(3)
Status: RESOLVED FIXED
Product: gthumb
Classification: Other
Component: general
3.0.x
Other OpenBSD
: Normal normal
: ---
Assigned To: Paolo Bacchilega
Paolo Bacchilega
Depends on:
Blocks:
 
 
Reported: 2012-05-21 06:14 UTC by Antoine Jacoutot
Modified: 2012-05-21 08:43 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
define XOPEN_SOURCE_EXTENDED (888 bytes, patch)
2012-05-21 06:14 UTC, Antoine Jacoutot
none Details | Review

Description Antoine Jacoutot 2012-05-21 06:14:26 UTC
Created attachment 214538 [details] [review]
define 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.

Thoughts?
Comment 1 Paolo Bacchilega 2012-05-21 08:43:23 UTC
patch applied to master, thank you.