[gnome-system-log] OpenBSD needs _XOPEN_SOURCE_EXTENDED for strptime(3)



commit b75701ce5c87eb125198ebfe124c829167844db1
Author: Antoine Jacoutot <ajacoutot gnome org>
Date:   Fri Jul 13 12:23:57 2012 +0200

    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.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=679845

 src/logview-utils.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/src/logview-utils.c b/src/logview-utils.c
index 675d6e4..2811202 100644
--- a/src/logview-utils.c
+++ b/src/logview-utils.c
@@ -24,6 +24,7 @@
 #endif
 
 #define _XOPEN_SOURCE
+#define _XOPEN_SOURCE_EXTENDED 1	/* strptime is XPG4v2 */
 #include <time.h>
 #include <string.h>
 #include <stdlib.h>



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