[Bug 2182] broken RTEMS CLOCKS_PER_SEC interface, when including only time.h

bugzilla-daemon at rtems.org bugzilla-daemon at rtems.org
Tue Jun 24 07:39:06 UTC 2014


Sebastian Huber <sebastian.huber at embedded-brains.de> changed:

           What    |Removed                     |Added
                 CC|                            |sebastian.huber at embedded-br
                   |                            |ains.de

--- Comment #3 from Sebastian Huber <sebastian.huber at embedded-brains.de> 2014-06-24 02:39:06 CDT ---
As the subject says, this bug is about CLOCKS_PER_SEC not sysconf().

A test case is:

#include <time.h>

int main()
   clock_t x = CLOCKS_PER_SEC;

   (void) x;

   return 0;


In file included from /opt/rtems-4.11/arm-rtems4.11/include/time.h:18:0,
                 from test.c:1:
test.c: In function 'main':
test.c:5:16: error: '_SC_CLK_TCK' undeclared (first use in this function)
    clock_t x = CLOCKS_PER_SEC;
test.c:5:16: note: each undeclared identifier is reported only once for each
function it appears in

Configure bugmail: https://www.rtems.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching all bug changes.

More information about the bugs mailing list