Sisyphus repository
Last update: 1 october 2023 | SRPMs: 18631 | Visits: 37714424
en ru br
ALT Linux repos
S:0.52-alt7
5.0: 0.52-alt5
4.1: 0.52-alt3
4.0: 0.52-alt3

Group :: Games/Other
RPM: netris

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs and FR  Repocop 

Patch: netris-0.52-alt-configure-tests_fix.patch
Download


--- netris-0.52.orig/Configure	2003-08-13 08:33:02 +0700
+++ netris-0.52/Configure	2006-10-09 16:16:15 +0700
@@ -76,7 +76,7 @@
 CFLAGS="$COPT $CEXTRA"
 
 echo "Checking for libraries"
-echo 'main(){}' > test.c
+echo 'int main(){return 0;}' > test.c
 LFLAGS=""
 for lib in -lcurses -lncurses; do
 	if $CC $CFLAGS $LEXTRA test.c $lib > /dev/null 2>&1; then
@@ -91,8 +91,9 @@
 
 echo "Checking for on_exit()"
 cat << END > test.c
-void handler(void) {}
-main() { on_exit(handler, (void *)0); }
+#include <stdlib.h>
+void handler(int first, void *second) {}
+int main() { on_exit(handler, (void *)0); return 0;}
 END
 if $CC $CFLAGS $LEXTRA test.c > /dev/null 2>&1; then
 	HAS_ON_EXIT=true
@@ -103,7 +104,7 @@
 echo "Checking for sigprocmask()"
 cat << END > test.c
 #include <signal.h>
-main() { sigset_t set; sigprocmask(SIG_BLOCK, &set, &set); }
+int main() { sigset_t set; sigprocmask(SIG_BLOCK, &set, 0); return 0;}
 END
 if $CC $CFLAGS $LEXTRA test.c > /dev/null 2>&1; then
 	HAS_SIGPROCMASK=true
@@ -114,7 +115,7 @@
 echo "Checking for getopt.h"
 cat << END > test.c
 #include <getopt.h>
-main(){}
+int main(){return 0;}
 END
 
 if $CC $CFLAGS $LEXTRA test.c > /dev/null 2>&1; then
@@ -126,7 +127,7 @@
 echo "Checking for memory.h"
 cat << END > test.c
 #include <memory.h>
-main(){}
+int main(){return 0;}
 END
 
 if $CC $CFLAGS $LEXTRA test.c > /dev/null 2>&1; then
 
design & coding: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
current maintainer: Michael Shigorin