[eog] build: OpenBSD needs _XOPEN_SOURCE_EXTENDED for strptime(3)
- From: Felix Riemann <friemann src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [eog] build: OpenBSD needs _XOPEN_SOURCE_EXTENDED for strptime(3)
- Date: Wed, 23 May 2012 16:37:04 +0000 (UTC)
commit b7c68b1ffe2ebcc81d6daa947d8ee94ad4e7e2c5
Author: Antoine Jacoutot <ajacoutot gnome org>
Date: Mon May 21 08:08:18 2012 +0200
build: OpenBSD needs _XOPEN_SOURCE_EXTENDED for strptime(3)
strptime(3) was introduced in XPG4. On OpenBSD, just defining
_XOPEN_SOURCE gets you the older XPG3 wich doesn't include strptime(3),
so we need to define _XOPEN_SOURCE_EXTENDED to get XPG4v2.
src/eog-exif-util.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/src/eog-exif-util.c b/src/eog-exif-util.c
index c2f723f..a11a3a7 100644
--- a/src/eog-exif-util.c
+++ b/src/eog-exif-util.c
@@ -30,6 +30,7 @@
#ifdef HAVE_STRPTIME
#define _XOPEN_SOURCE
+#define _XOPEN_SOURCE_EXTENDED 1
#endif
#include <time.h>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]