diff options
author | jperkin <jperkin@pkgsrc.org> | 2018-05-17 09:13:02 +0000 |
---|---|---|
committer | jperkin <jperkin@pkgsrc.org> | 2018-05-17 09:13:02 +0000 |
commit | 3858d8cfc09eb33bb6220ac382208749a662c02b (patch) | |
tree | 941352e875cd36fcaef9bfda1d3c3bf4da1d1bd5 /time/xfce4-orage/patches | |
parent | 4f2507b3bc4053925cb4a57bb4ab2e06c124c9cb (diff) | |
download | pkgsrc-3858d8cfc09eb33bb6220ac382208749a662c02b.tar.gz |
xfce4-orage: Set _XOPEN_SOURCE correctly on SunOS.
Diffstat (limited to 'time/xfce4-orage/patches')
-rw-r--r-- | time/xfce4-orage/patches/patch-src_appointment.c | 17 | ||||
-rw-r--r-- | time/xfce4-orage/patches/patch-src_functions.c | 17 |
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> |