summaryrefslogtreecommitdiff
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
commit8a6c26d9251d098156c8ae8c33ce9f6122cd3c96 (patch)
tree88dbddab6ac2ae76ec1f0cb0274e56d6e1ed55a5
parentd4d74c5f56d312885acf59ce0981994eef8e3dba (diff)
Prevent pthread.h from exposing assert()
* sysdeps/generic/bits/cancelation.h: Do not include <assert.h> (__pthread_cleanup_pop): Do not call `assert'.
-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 db9169a..46486f5 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; \
}