From 8253c240cb0fc24697bfe2b9388cb7cad1badb34 Mon Sep 17 00:00:00 2001 From: Sebastian Huber Date: Wed, 13 Sep 2017 13:07:31 +0200 Subject: [PATCH] RTEMS: Make sem_t self-contained Signed-off-by: Sebastian Huber --- newlib/libc/sys/rtems/include/semaphore.h | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/newlib/libc/sys/rtems/include/semaphore.h b/newlib/libc/sys/rtems/include/semaphore.h index e3c61da04..44ecc58f4 100644 --- a/newlib/libc/sys/rtems/include/semaphore.h +++ b/newlib/libc/sys/rtems/include/semaphore.h @@ -24,7 +24,7 @@ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. * - * $FreeBSD$ + * $FreeBSD: head/include/semaphore.h 314424 2017-02-28 21:47:00Z vangyzen $ */ /* semaphore.h: POSIX 1003.1b semaphores */ @@ -33,10 +33,14 @@ #define _SEMAPHORE_H_ #include +#include #include #include -typedef __uint32_t sem_t; +typedef struct { + unsigned long _flags; + struct _Semaphore_Control _Semaphore; +} sem_t; #define SEM_FAILED ((sem_t *)0)