aboutsummaryrefslogtreecommitdiff
path: root/src/libthread
diff options
context:
space:
mode:
authorrsc <devnull@localhost>2007-05-01 10:51:23 +0000
committerrsc <devnull@localhost>2007-05-01 10:51:23 +0000
commit528dba4d31ec0d5124e081b021eed4a80aec3a95 (patch)
tree767d7f93ad0d8bb190e8c0406c40497c7b21851c /src/libthread
parent57775dd9f3e579d2a779a2ed4e851bbd72f1858a (diff)
downloadplan9port-528dba4d31ec0d5124e081b021eed4a80aec3a95.tar.gz
plan9port-528dba4d31ec0d5124e081b021eed4a80aec3a95.tar.bz2
plan9port-528dba4d31ec0d5124e081b021eed4a80aec3a95.zip
use standard sun context routines
Diffstat (limited to 'src/libthread')
-rw-r--r--src/libthread/threadimpl.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/libthread/threadimpl.h b/src/libthread/threadimpl.h
index 507c0764..2a69d497 100644
--- a/src/libthread/threadimpl.h
+++ b/src/libthread/threadimpl.h
@@ -46,6 +46,11 @@ extern void makecontext(ucontext_t*, void(*)(), int, ...);
extern pid_t rfork_thread(int, void*, int(*)(void*), void*);
#endif
+/* THIS DOES NOT WORK! Don't do this!
+(At least, not on Solaris. Maybe this is right for Linux,
+in which case it should say if defined(__linux__) && defined(__sun__),
+but surely the latter would be defined(__sparc__).
+
#if defined(__sun__)
# define mcontext libthread_mcontext
# define mcontext_t libthread_mcontext_t
@@ -53,6 +58,7 @@ extern pid_t rfork_thread(int, void*, int(*)(void*), void*);
# define ucontext_t libthread_ucontext_t
# include "sparc-ucontext.h"
#endif
+*/
#if defined(__arm__)
int getmcontext(mcontext_t*);