summaryrefslogtreecommitdiffstats
path: root/src/libthread/label.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/libthread/label.h')
-rw-r--r--src/libthread/label.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/libthread/label.h b/src/libthread/label.h
index c3cef2d0..5081f48f 100644
--- a/src/libthread/label.h
+++ b/src/libthread/label.h
@@ -7,7 +7,13 @@
typedef struct Label Label;
#define LABELDPC 0
-#if defined (__i386__) && (defined(__FreeBSD__) || defined(__linux__) || defined(__OpenBSD__))
+#if defined(__linux__)
+#include <ucontext.h>
+struct Label
+{
+ ucontext_t uc;
+};
+#elif defined (__i386__) && (defined(__FreeBSD__) || defined(__linux__) || defined(__OpenBSD__))
struct Label
{
ulong pc;