cmake HAVE_SOLARIS_IRIX_GETPROTOBYNAME_R examples

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

check_c_source_compiles(
      "#include <netdb.h>

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

    return getprotobyname_r((const char *)0, &protoent_buf, buf, (int)sizeof buf) != NULL;
}
"
      HAVE_SOLARIS_IRIX_GETPROTOBYNAME_R)

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

endif(NOT HAVE_SOLARIS_IRIX_GETPROTOBYNAME_R)

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

check_c_source_compiles(
"#include <netdb.h>

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

    return getprotobyname_r((const char *)0, &protoent_buf, buf, (int)sizeof buf) != NULL;
}
"
            HAVE_SOLARIS_IRIX_GETPROTOBYNAME_R)

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

endif(NOT HAVE_SOLARIS_IRIX_GETPROTOBYNAME_R)