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
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