components/gawk/patches/patch_awk.patch
changeset 5267 42a22f73f3bc
equal deleted inserted replaced
5266:028461eee75e 5267:42a22f73f3bc
       
     1 Fix build problem with SunStudio compiler under Solaris. Patch taken
       
     2 from here:
       
     3 
       
     4 http://lists.gnu.org/archive/html/bug-gawk/2011-07/msg00008.html
       
     5 
       
     6 --- gawk-4.1.3/awk.h.orig       2013-04-07 18:54:28.000000000 +0100
       
     7 +++ gawk-4.1.3/awk.h    2013-12-26 19:03:34.000000000 +0000
       
     8 @@ -69,7 +69,7 @@
       
     9  #endif /* LOCALEDIR */
       
    10  #endif
       
    11 
       
    12 -#if !defined(__STDC__) || __STDC__ < 1
       
    13 +#if !defined(__STDC__) || __STDC__ < 1 && !defined(__EXTENSIONS__)
       
    14  #error "gawk no longer supports non-C89 environments (no __STDC__ or __STDC__ < 1)"
       
    15  #endif