You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@zookeeper.apache.org by "Flavio Junqueira (JIRA)" <ji...@apache.org> on 2015/06/13 01:27:01 UTC

[jira] [Commented] (ZOOKEEPER-2210) clock_gettime is not available in os x

    [ https://issues.apache.org/jira/browse/ZOOKEEPER-2210?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14584251#comment-14584251 ] 

Flavio Junqueira commented on ZOOKEEPER-2210:
---------------------------------------------

The problem is that _POSIX_MONOTONIC_CLOCK is defined but clock_gettime isn't.

> clock_gettime is not available in os x
> --------------------------------------
>
>                 Key: ZOOKEEPER-2210
>                 URL: https://issues.apache.org/jira/browse/ZOOKEEPER-2210
>             Project: ZooKeeper
>          Issue Type: Bug
>          Components: c client
>            Reporter: Michi Mutsuzaki
>            Assignee: Michi Mutsuzaki
>             Fix For: 3.5.1, 3.6.0
>
>
> {noformat}
> 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);
> {noformat}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)