Uploaded image for project: 'ZooKeeper'
  1. ZooKeeper
  2. ZOOKEEPER-2210

clock_gettime is not available in os x

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 3.5.1, 3.6.0
    • Component/s: c client
    • Labels:
      None

      Description

      src/zookeeper.c:286:9: warning: implicit declaration of function 'clock_gettime' is invalid in C99 [-Wimplicit-function-declaration]
        ret = clock_gettime(CLOCK_MONOTONIC, &ts);
              ^
      src/zookeeper.c:286:23: error: use of undeclared identifier 'CLOCK_MONOTONIC'
        ret = clock_gettime(CLOCK_MONOTONIC, &ts);
      

        Attachments

        1. ZOOKEEPER-2210.patch
          1 kB
          Michi Mutsuzaki
        2. ZOOKEEPER-2210.patch
          1 kB
          Michi Mutsuzaki

          Activity

            People

            • Assignee:
              michim Michi Mutsuzaki
              Reporter:
              michim Michi Mutsuzaki
            • Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: