mirror of
https://gitlab.rtems.org/rtems/rtos/rtems.git
synced 2026-11-15 11:10:11 +08:00
added include of <sched.h> and fixed warnings
This commit is contained in:
1 parent
782bdfd125
commit
0a359a7af5
2 files changed
+6
-4
No files matched your search
@@ -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 );
|
||||
|
||||
|
||||
@@ -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