mirror of
https://gitlab.rtems.org/rtems/rtos/rtems.git
synced 2025-12-26 22:48:23 +00:00
added include of <sched.h> and fixed warnings
This commit is contained in:
@@ -12,6 +12,7 @@
|
||||
|
||||
#define CONFIGURE_INIT
|
||||
#include "system.h"
|
||||
#include <sched.h>
|
||||
|
||||
#define TM_SUNDAY 0
|
||||
#define TM_MONDAY 1
|
||||
@@ -136,8 +137,8 @@ void *POSIX_Init(
|
||||
status = sched_rr_get_interval( getpid(), &tr );
|
||||
printf(
|
||||
"Round Robin quantum is %d seconds, %d nanoseconds\n",
|
||||
tr.tv_sec,
|
||||
tr.tv_nsec
|
||||
(int) tr.tv_sec,
|
||||
(int) tr.tv_nsec
|
||||
);
|
||||
assert( !status );
|
||||
|
||||
|
||||
Reference in New Issue
Block a user