summaryrefslogtreecommitdiff
path: root/sysdeps/generic
diff options
context:
space:
mode:
authorSamuel Thibault <samuel.thibault@ens-lyon.org>2010-09-01 23:36:14 +0200
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2010-09-01 23:36:14 +0200
commit5d8a8c2b664e36006eea5698709b98849b0ad129 (patch)
tree6275afc4cb6dac16a419950923bed7522b26918d /sysdeps/generic
parent90dd2d73435a8e1bbcccf5ed99a91b2c438557f4 (diff)
Prevent pthread.h from exposing assert()
* sysdeps/generic/bits/cancelation.h: Do not include <assert.h> (__pthread_cleanup_pop): Do not call `assert'.
Diffstat (limited to 'sysdeps/generic')
-rw-r--r--sysdeps/generic/bits/cancelation.h3
1 files changed, 0 insertions, 3 deletions
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 <assert.h>
-
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; \
}