Browse Source

Linux fix

Image 4 years ago
parent
commit
9aa88aae75
1 changed files with 2 additions and 0 deletions
  1. 2 0
      EQ2/source/common/database.cpp

+ 2 - 0
EQ2/source/common/database.cpp

@@ -381,6 +381,7 @@ void Database::RunAsyncQueries(int32 queryid)
 #ifdef WIN32
 		_beginthread(DBAsyncQueries, 0, (void*)tmp);
 #else
+		pthread_t t1;
 		pthread_create(&t1, NULL, DBAsyncQueries, (void*)tmp);
 		pthread_detach(t1);
 #endif
@@ -423,6 +424,7 @@ void Database::AddAsyncQuery(Query* query)
 #ifdef WIN32
 	_beginthread(DBAsyncQueries, 0, (void*)tmp);
 #else
+	pthread_t t1;
 	pthread_create(&t1, NULL, DBAsyncQueries, (void*)tmp);
 	pthread_detach(t1);
 #endif