summaryrefslogtreecommitdiff
path: root/lang/gawk/patches/patch-extension_inplace.c
blob: 757bc9b10d0fcdf38a799b9b87a2f461aabe044f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
$NetBSD: patch-extension_inplace.c,v 1.1 2016/09/08 16:16:15 jperkin Exp $

Support SunOS in C99 mode.

--- extension/inplace.c.orig	2015-04-27 15:09:07.000000000 +0000
+++ extension/inplace.c
@@ -27,12 +27,14 @@
 #include <config.h>
 #endif
 
+#if !(defined(__sun) && (__STDC_VERSION__ - 0 >= 199901L))
 #ifndef _XOPEN_SOURCE
 # define _XOPEN_SOURCE
 #endif
 #ifndef _XOPEN_SOURCE_EXTENDED
 # define _XOPEN_SOURCE_EXTENDED 1
 #endif
+#endif
 
 #include <stdio.h>
 #include <assert.h>