summaryrefslogtreecommitdiff
path: root/time/xfce4-orage/patches/patch-src_functions.c
blob: 74dd8657a211324ad9a57d49d38ee9c051a1babe (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
$NetBSD: patch-src_functions.c,v 1.2 2022/04/02 01:24:17 gutteridge Exp $

Set _XOPEN_SOURCE correctly on SunOS.

--- src/functions.c.orig	2022-03-17 12:46:01.000000000 +0000
+++ src/functions.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 <stdio.h>
 #include <stdlib.h>