Bug 676108 - OpenBSD needs _XOPEN_SOURCE_EXTENDED for strptime(3)
authorAntoine Jacoutot <ajacoutot@gnome.org>
Mon, 21 May 2012 00:28:44 +0000 (20:28 -0400)
committerMatthew Barnes <mbarnes@redhat.com>
Mon, 21 May 2012 00:31:09 +0000 (20:31 -0400)
strptime(3) was introduced in XPG4. On OpenBSD, just defining
_XOPEN_SOURCE gets you the older XPG3 which doesn't include strptime(3),
so we need to define _XOPEN_SOURCE_EXTENDED to get XPG4v2.

libedataserver/e-time-utils.c

index a203f7a..65b8519 100644 (file)
@@ -10,6 +10,7 @@
 
 #include <config.h>
 #define _XOPEN_SOURCE
+#define _XOPEN_SOURCE_EXTENDED 1  /* for strptime */
 
 /* For tm_gmtoff */
 #define _BSD_SOURCE