cmake HAVE_AIX_GETNETBYNAME_R examples

asset-group/5ghoul-5g-nr-attacks libs/libpcap/CMakeLists.txt :615

check_c_source_compiles(
        "#include <netdb.h>

int
main(void)
{
    struct netent netent_buf;
    struct netent_data net_data;

    return getnetbyname_r((const char *)0, &netent_buf, &net_data);
}
"
        HAVE_AIX_GETNETBYNAME_R)

CTSRD-CHERI/cheribsd contrib/libpcap/CMakeLists.txt :970

check_c_source_compiles(
"#include <netdb.h>

int
main(void)
{
    struct netent netent_buf;
    struct netent_data net_data;

    return getnetbyname_r((const char *)0, &netent_buf, &net_data);
}
"
                HAVE_AIX_GETNETBYNAME_R)