aboutsummaryrefslogtreecommitdiff
path: root/src/libthread/threadimpl.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/libthread/threadimpl.h')
-rw-r--r--src/libthread/threadimpl.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/libthread/threadimpl.h b/src/libthread/threadimpl.h
index d1f3e938..12b8a998 100644
--- a/src/libthread/threadimpl.h
+++ b/src/libthread/threadimpl.h
@@ -26,7 +26,11 @@ extern void makecontext(ucontext_t*, void(*)(), int, ...);
# define mcontext_t libthread_mcontext_t
# define ucontext libthread_ucontext
# define ucontext_t libthread_ucontext_t
-# include "power-ucontext.h"
+# if defined(__i386__)
+# include "386-ucontext.h"
+# else
+# include "power-ucontext.h"
+# endif
#endif
#if defined(__OpenBSD__)