Revision e5af4a11 configure

View differences:

configure
442 442
check_ldflags(){
443 443
    log check_ldflags "$@"
444 444
    check_ld "$@" <<EOF && add_ldflags "$@"
445
int main(){
445
int main(void){
446 446
    return 0;
447 447
}
448 448
EOF
......
467 467
    disable $func
468 468
    check_ld "$@" <<EOF && enable $func
469 469
extern int $func();
470
int main(){
470
int main(void){
471 471
    $func();
472 472
}
473 473
EOF
......
486 486
    done
487 487
    check_ld "$@" <<EOF && enable $func
488 488
$incs
489
int main(){
489
int main(void){
490 490
    (void) $func;
491 491
    return 0;
492 492
}
......
535 535
static void sighandler(int sig){
536 536
    raise(SIGTERM);
537 537
}
538
int main(){
538
int main(void){
539 539
    signal(SIGILL, sighandler);
540 540
    signal(SIGFPE, sighandler);
541 541
    signal(SIGSEGV, sighandler);
......
1391 1391

  
1392 1392
# compiler sanity check
1393 1393
check_exec <<EOF
1394
int main(){
1394
int main(void){
1395 1395
    return 0;
1396 1396
}
1397 1397
EOF

Also available in: Unified diff