From 0de138a7dc55fc3a8becfffb7f3e4738057c7c77 Mon Sep 17 00:00:00 2001 From: Luke Howard Date: Wed, 9 Dec 2015 11:02:28 +1100 Subject: [PATCH] cf: define __EXTENSIONS__ on Solaris defining __EXTENSIONS__ is necessary to build on Solaris 11 --- cf/sunos.m4 | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/cf/sunos.m4 b/cf/sunos.m4 index d81be70d4..57a244e90 100644 --- a/cf/sunos.m4 +++ b/cf/sunos.m4 @@ -8,7 +8,12 @@ case "$host" in *-*-solaris2.7) sunos=57 ;; -*-*-solaris2.[[89]] | *-*-solaris2.1[[0-9]]) +*-*-solaris2.1[[1-9]]) + AC_DEFINE([__EXTENSIONS__], [1], + [Enable general extensions on Solaris.]) + sunos=511 + ;; +*-*-solaris2.[[89]] | *-*-solaris2.10) sunos=58 ;; *-*-solaris2*) @@ -19,4 +24,4 @@ if test "$sunos" != no; then AC_DEFINE_UNQUOTED(SunOS, $sunos, [Define to what version of SunOS you are running.]) fi -]) \ No newline at end of file +])