[Bug 2182] New: broken RTEMS CLOCKS_PER_SEC interface, when including only time.h
bugzilla-daemon at rtems.org
bugzilla-daemon at rtems.org
Sat Jun 21 01:10:51 UTC 2014
https://www.rtems.org/bugzilla/show_bug.cgi?id=2182
Bug #: 2182
Summary: broken RTEMS CLOCKS_PER_SEC interface, when including
only time.h
Classification: Unclassified
Product: RTEMS
Version: 4.10
Platform: All
OS/Version: RTEMS
Status: NEW
Severity: normal
Priority: P3
Component: libcpu
AssignedTo: joel.sherrill at oarcorp.com
ReportedBy: johill at lanl.gov
I had to patch Lua (a very portable code) as follows for RTEMS 4.10. I had a
look around in the source and maybe its not possible for _SC_CLK_TCK to be
properly defined when expecting to include only the standard C lib clock
interface via time.h. Maybe its fixed in 4.11, but nevertheless I should
probably file a bug report while I see the issue, in case it isn’t.
/*
* repair broken RTEMS CLOCKS_PER_SEC interface
*/
#ifdef __rtems__
# include <sys/unistd.h>
#endif
--
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