[file-roller] OpenBSD needs _XOPEN_SOURCE_EXTENDED for strptime(3)



commit 05bba5254f119710473164f4f363ac6bb70d89e9
Author: Antoine Jacoutot <ajacoutot gnome org>
Date:   Sat May 2 12:34:20 2015 +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 which doesn't include strptime(3),
    so we need to define _XOPEN_SOURCE_EXTENDED to get XPG4v2.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=748791

 src/fr-command-unarchiver.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/src/fr-command-unarchiver.c b/src/fr-command-unarchiver.c
index 6c08b31..27d3382 100644
--- a/src/fr-command-unarchiver.c
+++ b/src/fr-command-unarchiver.c
@@ -21,6 +21,7 @@
 
 #include <config.h>
 #define _XOPEN_SOURCE       /* See feature_test_macros(7) */
+#define _XOPEN_SOURCE_EXTENDED 1  /* for strptime */
 #include <time.h>
 #include <stdio.h>
 #include <stdlib.h>


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