The following commit has been merged in the libpthread branch:
commit 8a6c26d9251d098156c8ae8c33ce9f6122cd3c96
Author: Samuel Thibault <[email protected]>
Date: Wed Sep 1 23:36:14 2010 +0200
Prevent pthread.h from exposing assert()
* sysdeps/generic/bits/cancelation.h: Do not include <assert.h>
(__pthread_cleanup_pop): Do not call `assert'.
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; \
}
--
Debian GNU Hurd packaging