Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:zhonghuaren
netris
netris-0.52-alt-configure-tests_fix.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File netris-0.52-alt-configure-tests_fix.patch of Package netris
--- 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, &set); 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
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor