From d80a943daf31131fae576c741554013dbbd6b0c3 Mon Sep 17 00:00:00 2001 From: gbeauche <> Date: Sun, 3 Jul 2005 23:28:30 +0000 Subject: [PATCH] Don't use sem_t definition from our local "semaphore.h" layer. Copy the definitions from original LinuxThreads. --- SheepShaver/src/Unix/Linux/sheepthreads.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/SheepShaver/src/Unix/Linux/sheepthreads.c b/SheepShaver/src/Unix/Linux/sheepthreads.c index c6850816..7cff5b75 100644 --- a/SheepShaver/src/Unix/Linux/sheepthreads.c +++ b/SheepShaver/src/Unix/Linux/sheepthreads.c @@ -34,7 +34,6 @@ #include #include #include -#include /* Thread stack size */ @@ -50,6 +49,13 @@ extern int test_and_set(int *var, int val); extern int __clone(int (*fn)(void *), void *, int, void *); /* struct sem_t */ +typedef struct { + struct _pthread_fastlock __sem_lock; + int __sem_value; + _pthread_descr __sem_waiting; +} sem_t; + +#define SEM_VALUE_MAX 64 #define status __status #define spinlock __spinlock #define sem_lock __sem_lock