cmake HAVE_LINUX_GETPROTOBYNAME_R examples

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

check_c_source_compiles(
    "#include <netdb.h>

int
main(void)
{
    struct protoent protoent_buf;
    char buf[1024];
    struct protoent *resultp;

    return getprotobyname_r((const char *)0, &protoent_buf, buf, sizeof buf, &resultp);
}
"
    HAVE_LINUX_GETPROTOBYNAME_R)

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

endif(NOT HAVE_LINUX_GETPROTOBYNAME_R)

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

check_c_source_compiles(
"#include <netdb.h>

int
main(void)
{
    struct protoent protoent_buf;
    char buf[1024];
    struct protoent *resultp;

    return getprotobyname_r((const char *)0, &protoent_buf, buf, sizeof buf, &resultp);
}
"
        HAVE_LINUX_GETPROTOBYNAME_R)

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

endif(NOT HAVE_LINUX_GETPROTOBYNAME_R)