cmake HAVE_H_ERRNO examples

percona/percona-server extra/curl/curl-8.14.1/CMake/OtherTests.cmake :107

check_c_source_compiles("${_source_epilogue}
    int main(void)
    {
    #ifndef h_errno
      #error force compilation error
    #endif
      return 0;
    }" HAVE_H_ERRNO)

infiniflow/infinity third_party/curl/CMake/OtherTests.cmake :134

check_c_source_compiles("${_source_epilogue}
    int main(void)
    {
    #ifdef h_errno
      return 0;
    #else
      #error force compilation error
    #endif
    }" HAVE_H_ERRNO)

SWI-Prolog/swipl-devel packages/cmake/Sockets.cmake :36

check_c_source_compiles(
      "#include <sys/types.h>
       #include <sys/socket.h>
       #include <netdb.h>
       #include <netinet/in.h>

       int main() { int x = h_errno; return 0;}"
      HAVE_H_ERRNO)

MBU-Team/OpenMBU engine/lib/curl/CMake/OtherTests.cmake :164

check_c_source_compiles("${_source_epilogue}
    int main(void)
    {
    #ifdef h_errno
      return 0;
    #else
      force compilation error
    #endif
    }" HAVE_H_ERRNO)

logicalclocks/rondb extra/curl/curl-8.11.1/CMake/OtherTests.cmake :104

check_c_source_compiles("${_source_epilogue}
    int main(void)
    {
    #ifdef h_errno
      return 0;
    #else
      #error force compilation error
    #endif
    }" HAVE_H_ERRNO)

mysql/mysql-server extra/curl/curl-8.14.1/CMake/OtherTests.cmake :107

check_c_source_compiles("${_source_epilogue}
    int main(void)
    {
    #ifndef h_errno
      #error force compilation error
    #endif
      return 0;
    }" HAVE_H_ERRNO)

skylersaleh/SkyEmu src/curl/CMake/OtherTests.cmake :164

check_c_source_compiles("${_source_epilogue}
    int main(void)
    {
    #ifdef h_errno
      return 0;
    #else
      force compilation error
    #endif
    }" HAVE_H_ERRNO)

glKarin/com.n0n3m4.diii4a Q3E/src/main/jni/deplibs/curl/CMake/OtherTests.cmake :164

check_c_source_compiles("${_source_epilogue}
    int main(void)
    {
    #ifdef h_errno
      return 0;
    #else
      force compilation error
    #endif
    }" HAVE_H_ERRNO)

percona/percona-xtrabackup extra/curl/curl-8.9.1/CMake/OtherTests.cmake :134

check_c_source_compiles("${_source_epilogue}
    int main(void)
    {
    #ifdef h_errno
      return 0;
    #else
      #error force compilation error
    #endif
    }" HAVE_H_ERRNO)

percona/percona-xtradb-cluster extra/curl/curl-8.12.1/CMake/OtherTests.cmake :107

check_c_source_compiles("${_source_epilogue}
    int main(void)
    {
    #ifdef h_errno
      return 0;
    #else
      #error force compilation error
    #endif
    }" HAVE_H_ERRNO)