From 8703d89b9f0914af5d1ee56749c0edf8e2902772 Mon Sep 17 00:00:00 2001 From: jperkin Date: Thu, 17 May 2018 09:59:28 +0000 Subject: xfce4-weather-plugin: Set _XOPEN_SOURCE correctly on SunOS. --- misc/xfce4-weather-plugin/distinfo | 3 ++- .../patches/patch-panel-plugin_weather-parsers.c | 17 +++++++++++++++++ 2 files changed, 19 insertions(+), 1 deletion(-) create mode 100644 misc/xfce4-weather-plugin/patches/patch-panel-plugin_weather-parsers.c (limited to 'misc/xfce4-weather-plugin') diff --git a/misc/xfce4-weather-plugin/distinfo b/misc/xfce4-weather-plugin/distinfo index caa950912b2..2a93643174a 100644 --- a/misc/xfce4-weather-plugin/distinfo +++ b/misc/xfce4-weather-plugin/distinfo @@ -1,6 +1,7 @@ -$NetBSD: distinfo,v 1.12 2018/05/15 21:37:30 youri Exp $ +$NetBSD: distinfo,v 1.13 2018/05/17 09:59:28 jperkin Exp $ SHA1 (xfce4-weather-plugin-0.8.10.tar.bz2) = cbe477356fe1bde6e93a38d2110c2135059a28e9 RMD160 (xfce4-weather-plugin-0.8.10.tar.bz2) = 248c375c25e98cf8fd7564878e8d427523be08a5 SHA512 (xfce4-weather-plugin-0.8.10.tar.bz2) = e40f794e824cc48038ece0c1336eed21b2e28091b86a4b76099c092c2e45abc5041d010d286f64fc483e8ad7c496127152df86330187afbd0872506d89f37c35 Size (xfce4-weather-plugin-0.8.10.tar.bz2) = 2991350 bytes +SHA1 (patch-panel-plugin_weather-parsers.c) = c07ebf8f35aaf04ce28a5fc6ca507b3b95c07ca1 diff --git a/misc/xfce4-weather-plugin/patches/patch-panel-plugin_weather-parsers.c b/misc/xfce4-weather-plugin/patches/patch-panel-plugin_weather-parsers.c new file mode 100644 index 00000000000..9d5cef1451e --- /dev/null +++ b/misc/xfce4-weather-plugin/patches/patch-panel-plugin_weather-parsers.c @@ -0,0 +1,17 @@ +$NetBSD: patch-panel-plugin_weather-parsers.c,v 1.1 2018/05/17 09:59:28 jperkin Exp $ + +Set _XOPEN_SOURCE correctly on SunOS. + +--- panel-plugin/weather-parsers.c.orig 2017-04-25 09:23:20.000000000 +0000 ++++ panel-plugin/weather-parsers.c +@@ -25,8 +25,10 @@ + * before time.h and libxfce4panel.h (which includes glib.h). + * Otherwise, they will be ignored. + */ ++#if !defined(__sun) || (!defined(_XOPEN_SOURCE) && (__STDC_VERSION__-0 < 199901L)) + #define _XOPEN_SOURCE + #define _XOPEN_SOURCE_EXTENDED 1 ++#endif + #include "weather-parsers.h" + #include "weather-translate.h" + #include "weather-debug.h" -- cgit v1.2.3