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