summaryrefslogtreecommitdiff
path: root/channelio/open.h
diff options
context:
space:
mode:
authorSamuel Thibault <samuel.thibault@ens-lyon.org>2013-02-12 01:25:53 +0000
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2013-02-12 01:25:53 +0000
commit5a8f3cd8adaabc814a916e225ff4af9c0689ac92 (patch)
treefd143874aff6f0291c08b1b2fd3dd87c49ec36c9 /channelio/open.h
parentbecf233178d2cf402591e97d7a8499cafbbb7251 (diff)
Fix build against libpthreadlibchannel
* channelio/Makefile (HURDLIBS): Remove threads. (OTHERLIBS): Add -lpthread. * channelio/open.h: Use pthread functions instead of cthreads functions. * libchannel/broadcast.c: Likewise. * libchannel/channel.h: Likewise. * libchannel/hub.c: Likewise.
Diffstat (limited to 'channelio/open.h')
-rw-r--r--channelio/open.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/channelio/open.h b/channelio/open.h
index 43dc85407..98f1d47c1 100644
--- a/channelio/open.h
+++ b/channelio/open.h
@@ -22,13 +22,13 @@
#ifndef __OPEN_H__
#define __OPEN_H__
-#include <cthreads.h>
+#include <pthread.h>
#include <hurd/channel.h>
/* Information about an open session. */
struct open
{
- struct mutex lock;
+ pthread_mutex_t lock;
struct channel *channel;
/* The current owner of the session. For terminals, this affects