diff options
Diffstat (limited to 'linuxthreads/tst-context.c')
-rw-r--r-- | linuxthreads/tst-context.c | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/linuxthreads/tst-context.c b/linuxthreads/tst-context.c index 5c3272a4fb..2938a9f7fa 100644 --- a/linuxthreads/tst-context.c +++ b/linuxthreads/tst-context.c @@ -1,3 +1,12 @@ +/* Ack, a hack! We need to get the proper definition, or lack thereof, + for FLOATING_STACKS. But when !IS_IN_libpthread, this can get defined + incidentally by <tls.h>. So kludge around it. */ + +#define IS_IN_libpthread +#include <tls.h> +#undef IS_IN_libpthread +#undef USE___THREAD + #include <errno.h> #include <error.h> #include <pthread.h> @@ -5,8 +14,6 @@ #include <stdlib.h> #include <ucontext.h> -#include "pt-machine.h" - #define N 4 |