summaryrefslogtreecommitdiff
path: root/x11/vte/patches/patch-configure
diff options
context:
space:
mode:
Diffstat (limited to 'x11/vte/patches/patch-configure')
-rw-r--r--x11/vte/patches/patch-configure19
1 files changed, 19 insertions, 0 deletions
diff --git a/x11/vte/patches/patch-configure b/x11/vte/patches/patch-configure
new file mode 100644
index 00000000000..50749a70042
--- /dev/null
+++ b/x11/vte/patches/patch-configure
@@ -0,0 +1,19 @@
+$NetBSD: patch-configure,v 1.1 2017/10/19 13:51:34 jperkin Exp $
+
+Don't define _XOPEN_SOURCE if using C99.
+
+--- configure.orig 2011-06-14 21:38:29.000000000 +0000
++++ configure
+@@ -12574,10 +12574,12 @@ rm -f conftest*
+ case $host in
+ *-*-solaris*)
+
++$as_echo "#if (__STDC_VERSION__ - 0 < 199901L)" >>confdefs.h
+ $as_echo "#define _XOPEN_SOURCE_EXTENDED 1" >>confdefs.h
+
+
+ $as_echo "#define _XOPEN_SOURCE 1" >>confdefs.h
++$as_echo "#endif" >>confdefs.h
+
+
+ $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h