summaryrefslogtreecommitdiffstats
path: root/cpukit/score/src/semaphore.c
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2016-12-23 13:54:11 +0100
committerSebastian Huber <sebastian.huber@embedded-brains.de>2016-12-23 13:54:11 +0100
commita7cfb4bda0a3f3cb2ccecbade43cd87d681dae4f (patch)
treece4b0da1ee14591560f4fa09c3c2ae5fd5a37756 /cpukit/score/src/semaphore.c
parentlibio: Use CONSOLE_DEVICE_NAME (diff)
downloadrtems-a7cfb4bda0a3f3cb2ccecbade43cd87d681dae4f.tar.bz2
score: Relax <sys/lock.h> static assertions
Only require that the Newlib defined structure is big enough.
Diffstat (limited to 'cpukit/score/src/semaphore.c')
-rw-r--r--cpukit/score/src/semaphore.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/cpukit/score/src/semaphore.c b/cpukit/score/src/semaphore.c
index df33532108..7619147ece 100644
--- a/cpukit/score/src/semaphore.c
+++ b/cpukit/score/src/semaphore.c
@@ -39,12 +39,12 @@ RTEMS_STATIC_ASSERT(
RTEMS_STATIC_ASSERT(
offsetof( Semaphore_Control, count )
- == offsetof( struct _Semaphore_Control, _count ),
+ <= offsetof( struct _Semaphore_Control, _count ),
SEMAPHORE_CONTROL_COUNT
);
RTEMS_STATIC_ASSERT(
- sizeof( Semaphore_Control ) == sizeof( struct _Semaphore_Control ),
+ sizeof( Semaphore_Control ) <= sizeof( struct _Semaphore_Control ),
SEMAPHORE_CONTROL_SIZE
);