#include <babeltrace/babeltrace-internal.h>
#include <babeltrace/common-internal.h>
#include <pthread.h>
+#include <assert.h>
#ifdef __CYGWIN__
extern unsigned long pthread_getsequence_np(pthread_t *);
STATIC_ASSERT(eol_sz_less_than_buf_sz, BT_LOG_EOL_SZ < BT_LOG_BUF_SZ);
static const char c_hex[] = "0123456789abcdef";
-static char __thread logging_buf[4 * 4096];
+static __thread char logging_buf[4 * 4096];
static INSTRUMENTED_CONST unsigned g_buf_sz = BT_LOG_BUF_SZ - BT_LOG_EOL_SZ;
static INSTRUMENTED_CONST time_cb g_time_cb = time_callback;