Репозиторий Sisyphus
Последнее обновление: 1 октября 2023 | Пакетов: 18631 | Посещений: 37733979
en ru br
Репозитории ALT
S:0.52-alt7
5.1: 0.52-alt5
4.1: 0.52-alt3
4.0: 0.52-alt3
www.altlinux.org/Changes

Группа :: Игры/Прочее
Пакет: netris

 Главная   Изменения   Спек   Патчи   Sources   Загрузить   Gear   Bugs and FR  Repocop 

Патч: netris-0.52-alt-configure-tests_fix.patch
Скачать


--- 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
 
дизайн и разработка: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
текущий майнтейнер: Michael Shigorin