diff options
author | Michael Sevakis <jethead71@rockbox.org> | 2007-10-16 01:41:16 +0000 |
---|---|---|
committer | Michael Sevakis <jethead71@rockbox.org> | 2007-10-16 01:41:16 +0000 |
commit | 6f513992b976df54e8d004dfb8bf533768cc92a4 (patch) | |
tree | d695d4614a714ab0b57c0814ff406931529dcb38 /uisimulator/sdl/kernel.c | |
parent | a9b2fb5ee3114fe835f6515b6aeae7454f66d821 (diff) | |
download | rockbox-6f513992b976df54e8d004dfb8bf533768cc92a4.tar.gz rockbox-6f513992b976df54e8d004dfb8bf533768cc92a4.zip |
Fix the red
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@15135 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'uisimulator/sdl/kernel.c')
-rw-r--r-- | uisimulator/sdl/kernel.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/uisimulator/sdl/kernel.c b/uisimulator/sdl/kernel.c index 8a54cd91fc..090b0d2e6b 100644 --- a/uisimulator/sdl/kernel.c +++ b/uisimulator/sdl/kernel.c | |||
@@ -531,6 +531,7 @@ void spinlock_unlock(struct spinlock *l) | |||
531 | l->locked = 0; | 531 | l->locked = 0; |
532 | } | 532 | } |
533 | 533 | ||
534 | #ifdef HAVE_SEMAPHORE_OBJECTS | ||
534 | void semaphore_init(struct semaphore *s, int max, int start) | 535 | void semaphore_init(struct semaphore *s, int max, int start) |
535 | { | 536 | { |
536 | if(max <= 0 || start < 0 || start > max) | 537 | if(max <= 0 || start < 0 || start > max) |
@@ -567,7 +568,9 @@ void semaphore_release(struct semaphore *s) | |||
567 | } | 568 | } |
568 | } | 569 | } |
569 | } | 570 | } |
571 | #endif /* HAVE_SEMAPHORE_OBJECTS */ | ||
570 | 572 | ||
573 | #ifdef HAVE_EVENT_OBJECTS | ||
571 | void event_init(struct event *e, unsigned int flags) | 574 | void event_init(struct event *e, unsigned int flags) |
572 | { | 575 | { |
573 | e->queues[STATE_NONSIGNALED] = NULL; | 576 | e->queues[STATE_NONSIGNALED] = NULL; |
@@ -650,3 +653,4 @@ void event_set_state(struct event *e, unsigned int state) | |||
650 | e->state = STATE_NONSIGNALED; | 653 | e->state = STATE_NONSIGNALED; |
651 | } | 654 | } |
652 | } | 655 | } |
656 | #endif /* HAVE_EVENT_OBJECTS */ \ No newline at end of file | ||