Checking patch htl/cancellation.c... error: while searching for: struct __pthread *p = _pthread_self (); int oldtype; __pthread_mutex_lock (&p->cancel_lock); oldtype = p->cancel_type; p->cancel_type = PTHREAD_CANCEL_ASYNCHRONOUS; error: patch failed: htl/cancellation.c:25 error: while searching for: { struct __pthread *p = _pthread_self (); __pthread_mutex_lock (&p->cancel_lock); p->cancel_type = oldtype; __pthread_mutex_unlock (&p->cancel_lock); error: patch failed: htl/cancellation.c:39 Checking patch htl/pt-self.c... error: while searching for: pthread_t __pthread_self (void) { struct __pthread *self = _pthread_self (); assert (self != NULL); return self->thread; error: patch failed: htl/pt-self.c:24 Applying patch htl/cancellation.c with 2 rejects... Rejected hunk #1. Rejected hunk #2. Applying patch htl/pt-self.c with 1 reject... Rejected hunk #1.