reconcile my and Sean's fixes

This commit is contained in:
Walter Bright 2009-02-08 23:18:30 +00:00
parent b8e9344ad8
commit 740fc18211
2 changed files with 11 additions and 10 deletions

View file

@ -614,13 +614,23 @@ extern (C)
/* from semaphore.h
*/
version (OSX)
{
alias int sem_t;
}
else version (linux)
{
struct sem_t
{
_pthread_fastlock __sem_lock;
int __sem_value;
void* __sem_waiting;
}
}
else
{
static assert(0);
}
int sem_init(sem_t*, int, uint);
int sem_wait(sem_t*);
int sem_trywait(sem_t*);

View file

@ -5,15 +5,11 @@
module std.c.linux.pthread;
<<<<<<< .mine
import std.c.linux.linux;
extern (C)
=======
extern (C):
version(linux)
>>>>>>> .r909
{
/* pthread declarations taken from pthread headers and
http://svn.dsource.org/projects/bindings/trunk/pthreads.d
@ -209,11 +205,6 @@ version(OSX)
_pthread_cleanup_buffer* __next;
}
struct __sched_param // bits/sched.h
{
int __sched_priority;
}
struct __sched_param
{
int sched_priority;