From 5d8a8c2b664e36006eea5698709b98849b0ad129 Mon Sep 17 00:00:00 2001 From: Samuel Thibault Date: Wed, 1 Sep 2010 23:36:14 +0200 Subject: Prevent pthread.h from exposing assert() * sysdeps/generic/bits/cancelation.h: Do not include (__pthread_cleanup_pop): Do not call `assert'. --- sysdeps/generic/bits/cancelation.h | 3 --- 1 file changed, 3 deletions(-) (limited to 'sysdeps/generic') diff --git a/sysdeps/generic/bits/cancelation.h b/sysdeps/generic/bits/cancelation.h index db9169a9..46486f5e 100644 --- a/sysdeps/generic/bits/cancelation.h +++ b/sysdeps/generic/bits/cancelation.h @@ -20,8 +20,6 @@ #ifndef _BITS_CANCELATION_H #define _BITS_CANCELATION_H 1 -#include - struct __pthread_cancelation_handler { void (*handler)(void *); @@ -47,7 +45,6 @@ struct __pthread_cancelation_handler **__pthread_get_cleanup_stack (void); #define __pthread_cleanup_pop(execute) \ if (execute) \ __handler.handler (__handler.arg); \ - assert (*__handlers == &__handler); \ *__handlers = __handler.next; \ } -- cgit v1.2.3