kernel/semaphore: fix compilation errors
authorHeesub Shin <heesub.shin@samsung.com>
Thu, 6 Apr 2017 02:27:06 +0000 (11:27 +0900)
committerHeesub Shin <heesub.shin@samsung.com>
Tue, 18 Apr 2017 03:02:11 +0000 (12:02 +0900)
commit0e8fb6498892263837b1bc0a778da31e8e4ea587
tree8ce3ba48b8c20626c5dc661067682f0332bd5749
parent7f7c7e293df050f75c023dcce7511352cd0aadc8
kernel/semaphore: fix compilation errors

Handle a case of missing proxy sem_setprotocol. Reorder so that (1) this
error is avoided, and (2) no proxy is needed if priority inheritance is
not enabled.

Change-Id: I4421e3e929567fcdb43fdd2e031e49ceb6fc252f
Signed-off-by: Gregory Nutt <gnutt@nuttx.org>
[Shin: backported 73fc186b from NuttX]
Signed-off-by: Heesub Shin <heesub.shin@samsung.com>
lib/libc/semaphore/Make.defs
lib/libc/semaphore/sem_setprotocol.c [new file with mode: 0644]
os/kernel/semaphore/Make.defs
os/kernel/semaphore/sem_setprotocol.c
os/syscall/syscall.csv