Revision 14d36751

View differences:

configure
759 759
EOF
760 760
}
761 761

  
762
check_struct(){
763
    log check_type "$@"
764
    headers=$1
765
    struct=$2
766
    member=$3
767
    shift 3
768
    disable_safe "${struct}_${member}"
769
    incs=""
770
    for hdr in $headers; do
771
        incs="$incs
772
#include <$hdr>"
773
    done
774
    check_cc "$@" <<EOF && enable_safe "${struct}_${member}"
775
$incs
776
const void *p = &(($struct *)0)->$member;
777
EOF
778
}
779

  
762 780
require(){
763 781
    name="$1"
764 782
    header="$2"

Also available in: Unified diff