cmake HAVE_LINUX_GETNETBYNAME_R examples

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

check_c_source_compiles(
    "#include <netdb.h>

int
main(void)
{
    struct netent netent_buf;
    char buf[1024];
    struct netent *resultp;
    int h_errnoval;

    return getnetbyname_r((const char *)0, &netent_buf, buf, sizeof buf, &resultp, &h_errnoval);
}
"
    HAVE_LINUX_GETNETBYNAME_R)

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

endif(NOT HAVE_LINUX_GETNETBYNAME_R)

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

check_c_source_compiles(
"#include <netdb.h>

int
main(void)
{
    struct netent netent_buf;
    char buf[1024];
    struct netent *resultp;
    int h_errnoval;

    return getnetbyname_r((const char *)0, &netent_buf, buf, sizeof buf, &resultp, &h_errnoval);
}
"
        HAVE_LINUX_GETNETBYNAME_R)

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

endif(NOT HAVE_LINUX_GETNETBYNAME_R)