Blob Blame History Raw
commit 9cffd6a8e1cf11997fbc8d569429dacf1c4bd383
Author: rpm-build <rpm-build>
Date:   Sat Jan 7 06:49:37 2023 +0000

    bib2html-configure-c99.patch

diff --git a/configure b/configure
index a37450a..238f366 100755
--- a/configure
+++ b/configure
@@ -941,7 +941,7 @@ cat > conftest.$ac_ext << EOF
 #line 942 "configure"
 #include "confdefs.h"
 
-main(){return(0);}
+int main(){return(0);}
 EOF
 if { (eval echo configure:947: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
   ac_cv_prog_cc_works=yes
@@ -1531,8 +1531,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:1539: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null