cmake HAVE_SYS_POLL_H examples

robotology/yarp extern/thrift/thrift/build/cmake/ConfigureChecks.cmake :49

check_include_file(sys/poll.h HAVE_SYS_POLL_H)

crossuo/crossuo deps/cmcurl/CMake/OtherTests.cmake :229

check_c_source_runs("
    #include <stdlib.h>
    #include <sys/time.h>

    #ifdef HAVE_SYS_POLL_H
    #  include <sys/poll.h>
    #elif  HAVE_POLL_H
    #  include <poll.h>
    #endif

    int main(void)
    {
        if(0 != poll(0, 0, 10)) {
          return 1; /* fail */
        }
        else {
          /* detect the 10.12 poll() breakage */
          struct timeval before, after;
          int rc;
          size_t us;

          gettimeofday(&before, NULL);
          rc = poll(NULL, 0, 500);
          gettimeofday(&after, NULL);

          us = (after.tv_sec - before.tv_sec) * 1000000 +
            (after.tv_usec - before.tv_usec);

          if(us < 400000) {
            return 1;
          }
        }
        return 0;
    }" HAVE_POLL_FINE)

arkdb/arkproxy configure.cmake :199

CHECK_INCLUDE_FILES (sys/poll.h HAVE_SYS_POLL_H)

AtomicGameEngine/AtomicGameEngine Source/ThirdParty/libcurl/CMake/OtherTests.cmake :185

endif(HAVE_SYS_POLL_H)

AtomicGameEngine/AtomicGameEngine Source/ThirdParty/libcurl/CMake/OtherTests.cmake :186

check_c_source_runs("
  #ifdef HAVE_SYS_POLL_H
  #  include <sys/poll.h>
  #endif
  int main(void) {
    return poll((void *)0, 0, 10 /*ms*/);
  }" HAVE_POLL_FINE)

p4lang/open-p4studio cmake/ConfigureChecks.cmake :37

check_include_file(sys/poll.h HAVE_SYS_POLL_H)

p4lang/open-p4studio pkgsrc/target-syslibs/cmake/ConfigureChecks.cmake :35

check_include_file(sys/poll.h HAVE_SYS_POLL_H)

p4lang/open-p4studio pkgsrc/target-utils/cmake/ConfigureChecks.cmake :35

check_include_file(sys/poll.h HAVE_SYS_POLL_H)

percona/percona-server extra/curl/curl-8.14.1/CMakeLists.txt :1668

check_include_file("sys/poll.h"       HAVE_SYS_POLL_H)

logicalclocks/rondb extra/curl/curl-8.11.1/CMakeLists.txt :1472

check_include_file("sys/poll.h"       HAVE_SYS_POLL_H)

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

check_c_source_runs("
      #include <stdlib.h>
      #include <sys/time.h>

      #ifdef HAVE_SYS_POLL_H
      #  include <sys/poll.h>
      #elif  HAVE_POLL_H
      #  include <poll.h>
      #endif

      int main(void)
      {
          if(0 != poll(0, 0, 10)) {
            return 1; /* fail */
          }
          else {
            /* detect the 10.12 poll() breakage */
            struct timeval before, after;
            int rc;
            size_t us;

            gettimeofday(&before, NULL);
            rc = poll(NULL, 0, 500);
            gettimeofday(&after, NULL);

            us = (after.tv_sec - before.tv_sec) * 1000000 +
              (after.tv_usec - before.tv_usec);

            if(us < 400000) {
              return 1;
            }
          }
          return 0;
    }" HAVE_POLL_FINE)

PacktPublishing/The-Modern-Cpp-Challenge libs/curl/CMake/OtherTests.cmake :187

endif(HAVE_SYS_POLL_H)

PacktPublishing/The-Modern-Cpp-Challenge libs/curl/CMake/OtherTests.cmake :188

check_c_source_runs("
    #ifdef HAVE_SYS_POLL_H
    #  include <sys/poll.h>
    #endif
    int main(void) {
      return poll((void *)0, 0, 10 /*ms*/);
    }" HAVE_POLL_FINE)

polardb/polardbx-engine extra/curl/curl-7.86.0/CMake/OtherTests.cmake :100

check_c_source_runs("
    #include <stdlib.h>
    #include <sys/time.h>

    #ifdef HAVE_SYS_POLL_H
    #  include <sys/poll.h>
    #elif  HAVE_POLL_H
    #  include <poll.h>
    #endif

    int main(void)
    {
        if(0 != poll(0, 0, 10)) {
          return 1; /* fail */
        }
        else {
          /* detect the 10.12 poll() breakage */
          struct timeval before, after;
          int rc;
          size_t us;

          gettimeofday(&before, NULL);
          rc = poll(NULL, 0, 500);
          gettimeofday(&after, NULL);

          us = (after.tv_sec - before.tv_sec) * 1000000 +
            (after.tv_usec - before.tv_usec);

          if(us < 400000) {
            return 1;
          }
        }
        return 0;
    }" HAVE_POLL_FINE)

GreatSQL/GreatSQL extra/curl/curl-7.86.0/CMake/OtherTests.cmake :100

check_c_source_runs("
    #include <stdlib.h>
    #include <sys/time.h>

    #ifdef HAVE_SYS_POLL_H
    #  include <sys/poll.h>
    #elif  HAVE_POLL_H
    #  include <poll.h>
    #endif

    int main(void)
    {
        if(0 != poll(0, 0, 10)) {
          return 1; /* fail */
        }
        else {
          /* detect the 10.12 poll() breakage */
          struct timeval before, after;
          int rc;
          size_t us;

          gettimeofday(&before, NULL);
          rc = poll(NULL, 0, 500);
          gettimeofday(&after, NULL);

          us = (after.tv_sec - before.tv_sec) * 1000000 +
            (after.tv_usec - before.tv_usec);

          if(us < 400000) {
            return 1;
          }
        }
        return 0;
    }" HAVE_POLL_FINE)

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

check_c_source_runs("
      #include <stdlib.h>
      #include <sys/time.h>

      #ifdef HAVE_SYS_POLL_H
      #  include <sys/poll.h>
      #elif  HAVE_POLL_H
      #  include <poll.h>
      #endif

      int main(void)
      {
          if(0 != poll(0, 0, 10)) {
            return 1; /* fail */
          }
          else {
            /* detect the 10.12 poll() breakage */
            struct timeval before, after;
            int rc;
            size_t us;

            gettimeofday(&before, NULL);
            rc = poll(NULL, 0, 500);
            gettimeofday(&after, NULL);

            us = (after.tv_sec - before.tv_sec) * 1000000 +
              (after.tv_usec - before.tv_usec);

            if(us < 400000) {
              return 1;
            }
          }
          return 0;
    }" HAVE_POLL_FINE)

glKarin/com.n0n3m4.diii4a Q3E/src/main/jni/source/thirdparty/curl/CMake/OtherTests.cmake :248

check_c_source_runs("
    #include <stdlib.h>
    #include <sys/time.h>

    #ifdef HAVE_SYS_POLL_H
    #  include <sys/poll.h>
    #elif  HAVE_POLL_H
    #  include <poll.h>
    #endif

    int main(void)
    {
        if(0 != poll(0, 0, 10)) {
          return 1; /* fail */
        }
        else {
          /* detect the 10.12 poll() breakage */
          struct timeval before, after;
          int rc;
          size_t us;

          gettimeofday(&before, NULL);
          rc = poll(NULL, 0, 500);
          gettimeofday(&after, NULL);

          us = (after.tv_sec - before.tv_sec) * 1000000 +
            (after.tv_usec - before.tv_usec);

          if(us < 400000) {
            return 1;
          }
        }
        return 0;
    }" HAVE_POLL_FINE)

percona/percona-xtradb-cluster extra/curl/curl-8.12.1/CMakeLists.txt :1608

check_include_file("sys/poll.h"       HAVE_SYS_POLL_H)

facebook/mysql-5.6 extra/curl/curl-7.86.0/CMake/OtherTests.cmake :100

check_c_source_runs("
    #include <stdlib.h>
    #include <sys/time.h>

    #ifdef HAVE_SYS_POLL_H
    #  include <sys/poll.h>
    #elif  HAVE_POLL_H
    #  include <poll.h>
    #endif

    int main(void)
    {
        if(0 != poll(0, 0, 10)) {
          return 1; /* fail */
        }
        else {
          /* detect the 10.12 poll() breakage */
          struct timeval before, after;
          int rc;
          size_t us;

          gettimeofday(&before, NULL);
          rc = poll(NULL, 0, 500);
          gettimeofday(&after, NULL);

          us = (after.tv_sec - before.tv_sec) * 1000000 +
            (after.tv_usec - before.tv_usec);

          if(us < 400000) {
            return 1;
          }
        }
        return 0;
    }" HAVE_POLL_FINE)

Warzone2100/warzone2100 CMakeLists.txt :803

CHECK_INCLUDE_FILES("sys/poll.h" HAVE_SYS_POLL_H)

bareos/bareos core/cmake/BareosCheckIncludes.cmake :51

check_include_files(sys/poll.h HAVE_SYS_POLL_H)

AshamaneProject/AshamaneCore dep/cpr/opt/curl/CMake/OtherTests.cmake :187

endif(HAVE_SYS_POLL_H)

AshamaneProject/AshamaneCore dep/cpr/opt/curl/CMake/OtherTests.cmake :188

check_c_source_runs("
    #ifdef HAVE_SYS_POLL_H
    #  include <sys/poll.h>
    #endif
    int main(void) {
      return poll((void *)0, 0, 10 /*ms*/);
    }" HAVE_POLL_FINE)

mysql/mysql-server extra/curl/curl-8.14.1/CMakeLists.txt :1668

check_include_file("sys/poll.h"       HAVE_SYS_POLL_H)