#define DATABASE_VERSION "15"
struct mysql_conn_struct {
- unsigned long tid;
+ unsigned int tid;
MYSQL *mysql_conn;
struct used_result *used_results;
struct escaped_string *escaped_strings;
struct mysql_conn_struct *get_mysql_conn_struct() {
SYNCHRONIZE(synchronized);
struct mysql_conn_struct *mysql_conn;
- unsigned long tid;
+ unsigned int tid;
#ifdef HAVE_THREADS
- tid = syscall(SYS_gettid);
+ tid = (unsigned int) pthread_self_tid();
#else
tid = 1;
#endif