X-Git-Url: https://git.liburcu.org/?p=urcu.git;a=blobdiff_plain;f=src%2Frculfhash-internal.h;h=e17210b8624cf7fd370ef88f591174e100085548;hp=0f8df97c0b6305e41cc533384586698d131bf0d7;hb=014775106c60f02818ca755b331f887030bd440f;hpb=d0ec0ed2fcb5d67a28587dcb778606e64f5b7b83 diff --git a/src/rculfhash-internal.h b/src/rculfhash-internal.h index 0f8df97..e17210b 100644 --- a/src/rculfhash-internal.h +++ b/src/rculfhash-internal.h @@ -24,8 +24,10 @@ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA */ +#include #include #include +#include #ifdef DEBUG #define dbg_printf(fmt, args...) printf("[debug rculfhash] " fmt, ## args) @@ -168,7 +170,7 @@ struct cds_lfht *__default_alloc_cds_lfht( struct cds_lfht *ht; ht = calloc(1, cds_lfht_size); - assert(ht); + urcu_posix_assert(ht); ht->mm = mm; ht->bucket_at = mm->bucket_at;