summaryrefslogtreecommitdiff
path: root/time/xfce4-orage/patches
diff options
context:
space:
mode:
Diffstat (limited to 'time/xfce4-orage/patches')
-rw-r--r--time/xfce4-orage/patches/patch-src_appointment.c17
-rw-r--r--time/xfce4-orage/patches/patch-src_functions.c17
2 files changed, 34 insertions, 0 deletions
diff --git a/time/xfce4-orage/patches/patch-src_appointment.c b/time/xfce4-orage/patches/patch-src_appointment.c
new file mode 100644
index 00000000000..051f61c1ea1
--- /dev/null
+++ b/time/xfce4-orage/patches/patch-src_appointment.c
@@ -0,0 +1,17 @@
+$NetBSD: patch-src_appointment.c,v 1.1 2018/05/17 09:13:02 jperkin Exp $
+
+Set _XOPEN_SOURCE correctly on SunOS.
+
+--- src/appointment.c.orig 2015-04-10 10:26:26.000000000 +0000
++++ src/appointment.c
+@@ -25,8 +25,10 @@
+ # include <config.h>
+ #endif
+
++#if !defined(__sun) || (!defined(_XOPEN_SOURCE) && (__STDC_VERSION__-0 < 199901L))
+ #define _XOPEN_SOURCE /* glibc2 needs this */
+ #define _XOPEN_SOURCE_EXTENDED 1 /* strptime needs this in posix systems */
++#endif
+
+ #include <sys/types.h>
+ #include <sys/stat.h>
diff --git a/time/xfce4-orage/patches/patch-src_functions.c b/time/xfce4-orage/patches/patch-src_functions.c
new file mode 100644
index 00000000000..68685c7d509
--- /dev/null
+++ b/time/xfce4-orage/patches/patch-src_functions.c
@@ -0,0 +1,17 @@
+$NetBSD: patch-src_functions.c,v 1.1 2018/05/17 09:13:02 jperkin Exp $
+
+Set _XOPEN_SOURCE correctly on SunOS.
+
+--- src/functions.c.orig 2015-04-10 10:26:26.000000000 +0000
++++ src/functions.c
+@@ -21,8 +21,10 @@
+
+ */
+
++#if !defined(__sun) || (!defined(_XOPEN_SOURCE) && (__STDC_VERSION__-0 < 199901L))
+ #define _XOPEN_SOURCE /* glibc2 needs this */
+ #define _XOPEN_SOURCE_EXTENDED 1 /* strptime needs this in posix systems */
++#endif
+
+ #include <stdio.h>
+ #include <stdlib.h>