[PATCH v1] add time.h to pthreadgetcpuclockid file to access clockid_t

Eshan dhawan eshandhawan51 at gmail.com
Thu Mar 12 19:56:55 UTC 2020


---
 cpukit/posix/src/pthreadgetcpuclockid.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/cpukit/posix/src/pthreadgetcpuclockid.c b/cpukit/posix/src/pthreadgetcpuclockid.c
index 159a3f9791..39915f3c0a 100644
--- a/cpukit/posix/src/pthreadgetcpuclockid.c
+++ b/cpukit/posix/src/pthreadgetcpuclockid.c
@@ -22,7 +22,7 @@
 
 #include <pthread.h>
 #include <errno.h>
-#include <sys/types.h>
+#include <time.h>
 #include <rtems/seterr.h>
 
 int pthread_getcpuclockid(
-- 
2.17.1



More information about the devel mailing list