gnome-utils: Set _XOPEN_SOURCE correctly.

This commit is contained in:
jperkin 2018-02-06 10:39:46 +00:00
parent d6d4bdcf77
commit ca12c28cbb
2 changed files with 25 additions and 1 deletions

View file

@ -1,4 +1,4 @@
$NetBSD: distinfo,v 1.23 2017/07/14 12:57:23 joerg Exp $
$NetBSD: distinfo,v 1.24 2018/02/06 10:39:46 jperkin Exp $
SHA1 (gnome-utils-2.32.0.tar.bz2) = 68ef7e12280969bde9bee4bbd566ad4ab0572e77
RMD160 (gnome-utils-2.32.0.tar.bz2) = c25667eec2ba4fd0d704c10a92e2e6b071eb1bfc
@ -9,3 +9,4 @@ SHA1 (patch-ac) = 482b496673bcfd4be21d5defed51e74da3009982
SHA1 (patch-ad) = 2e6b9e7f638dc758b948f5782300a16b95e67d0b
SHA1 (patch-ae) = ab44b488da57de56752253f67414f44cc3075957
SHA1 (patch-gnome-dictionary_libgdict_gdict-client-context.h) = 82a5c5e1a4da87b31035d59588972e61412fef59
SHA1 (patch-logview_logview-utils.c) = f5be5c8db4d3a117012c2253ecdf286452901290

View file

@ -0,0 +1,23 @@
$NetBSD: patch-logview_logview-utils.c,v 1.1 2018/02/06 10:39:46 jperkin Exp $
Set _XOPEN_SOURCE correctly.
--- logview/logview-utils.c.orig 2009-09-21 15:54:41.000000000 +0000
+++ logview/logview-utils.c
@@ -19,7 +19,9 @@
* Foundation, Inc., 551 Franklin Street, Fifth Floor, Boston, MA 02110-1301,
*/
+#if !defined(__sun) || (__STDC_VERSION__-0 < 199901L)
#define _XOPEN_SOURCE
+#endif
#include <time.h>
#include <string.h>
#include <stdlib.h>
@@ -274,4 +276,4 @@ log_read_dates (const char **buffer_line
days = g_slist_sort (days, days_compare);
return days;
-}
\ No newline at end of file
+}