Thu May 17 09:59:29 2018 UTC ()
xfce4-weather-plugin: Set _XOPEN_SOURCE correctly on SunOS.


(jperkin)
diff -r1.12 -r1.13 pkgsrc/misc/xfce4-weather-plugin/distinfo
diff -r0 -r1.1 pkgsrc/misc/xfce4-weather-plugin/patches/patch-panel-plugin_weather-parsers.c

cvs diff -r1.12 -r1.13 pkgsrc/misc/xfce4-weather-plugin/distinfo (expand / switch to unified diff)

--- pkgsrc/misc/xfce4-weather-plugin/distinfo 2018/05/15 21:37:30 1.12
+++ pkgsrc/misc/xfce4-weather-plugin/distinfo 2018/05/17 09:59:28 1.13
@@ -1,6 +1,7 @@ @@ -1,6 +1,7 @@
1$NetBSD: distinfo,v 1.12 2018/05/15 21:37:30 youri Exp $ 1$NetBSD: distinfo,v 1.13 2018/05/17 09:59:28 jperkin Exp $
2 2
3SHA1 (xfce4-weather-plugin-0.8.10.tar.bz2) = cbe477356fe1bde6e93a38d2110c2135059a28e9 3SHA1 (xfce4-weather-plugin-0.8.10.tar.bz2) = cbe477356fe1bde6e93a38d2110c2135059a28e9
4RMD160 (xfce4-weather-plugin-0.8.10.tar.bz2) = 248c375c25e98cf8fd7564878e8d427523be08a5 4RMD160 (xfce4-weather-plugin-0.8.10.tar.bz2) = 248c375c25e98cf8fd7564878e8d427523be08a5
5SHA512 (xfce4-weather-plugin-0.8.10.tar.bz2) = e40f794e824cc48038ece0c1336eed21b2e28091b86a4b76099c092c2e45abc5041d010d286f64fc483e8ad7c496127152df86330187afbd0872506d89f37c35 5SHA512 (xfce4-weather-plugin-0.8.10.tar.bz2) = e40f794e824cc48038ece0c1336eed21b2e28091b86a4b76099c092c2e45abc5041d010d286f64fc483e8ad7c496127152df86330187afbd0872506d89f37c35
6Size (xfce4-weather-plugin-0.8.10.tar.bz2) = 2991350 bytes 6Size (xfce4-weather-plugin-0.8.10.tar.bz2) = 2991350 bytes
 7SHA1 (patch-panel-plugin_weather-parsers.c) = c07ebf8f35aaf04ce28a5fc6ca507b3b95c07ca1

File Added: pkgsrc/misc/xfce4-weather-plugin/patches/patch-panel-plugin_weather-parsers.c
$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"