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

clock_gettime is not available in os x

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 3.5.1, 3.6.0
    • c client
    • 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

            michim Michi Mutsuzaki
            michim Michi Mutsuzaki
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: