[gthumb] build: OpenBSD needs _XOPEN_SOURCE_EXTENDED for strptime(3)



commit 62005629d834faa5ddc3799c6c43247182b3a814
Author: Antoine Jacoutot <ajacoutot gnome org>
Date:   Mon May 21 08:12:48 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.

 gthumb/gth-time-selector.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/gthumb/gth-time-selector.c b/gthumb/gth-time-selector.c
index b5dc55c..504ed7a 100644
--- a/gthumb/gth-time-selector.c
+++ b/gthumb/gth-time-selector.c
@@ -21,6 +21,7 @@
 
 #include <config.h>
 #define _XOPEN_SOURCE /* glibc2 needs this */
+#define _XOPEN_SOURCE_EXTENDED 1
 #include <time.h>
 #include <glib/gi18n.h>
 #include <gdk/gdkkeysyms.h>



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]