Sisyphus repositório
Última atualização: 1 outubro 2023 | SRPMs: 18631 | Visitas: 37502838
en ru br
ALT Linux repositórios
S:1.0-alt3_35
5.0: 0.5-alt2
4.1: 0.5-alt2
4.0: 0.5-alt2

Group :: Sistema/Bibliotecas
RPM: libcgi

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs e FR  Repocop 

Patch: libcgi-configure-c99.patch
Download


This patch fixes some historic autoconf-generate code to avoid an
implicit in return type, a C language feature that was removed in 1999.
No need to upstream this because the issue will go away once the
configure script is regenerated with current autoconf.
diff --git a/configure b/configure
index 98c2c75c2d54f832..a12ff5bc0d531bf3 100755
--- a/configure
+++ b/configure
@@ -653,7 +653,7 @@ cat > conftest.$ac_ext << EOF
 #line 654 "configure"
 #include "confdefs.h"
 
-main(){return(0);}
+int main(){return(0);}
 EOF
 if { (eval echo configure:659: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
   ac_cv_prog_cc_works=yes
@@ -991,8 +991,8 @@ else
 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
 int main () { int i; for (i = 0; i < 256; i++)
-if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
-exit (0); }
+if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) return 2;
+return 0; }
 
 EOF
 if { (eval echo configure:999: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
 
projeto & código: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
mantenedor atual: Michael Shigorin
mantenedor da tradução: Fernando Martini aka fmartini © 2009