Bionic already defines gettid through <unistd.h>.
Signed-off-by: Charles Briere <charlesbriere.flatzo@gmail.com>
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
{
return (unsigned long) pthread_getthreadid_np();
}
{
return (unsigned long) pthread_getthreadid_np();
}
+#elif defined(__Android__)
+/*
+ * Do not redefine gettid() as it is already included
+ * in bionic through <unistd.h>.
+ */
#else
# warning "use pid as thread ID"
static inline
#else
# warning "use pid as thread ID"
static inline