]> git.ipfire.org Git - thirdparty/suricata.git/commitdiff
Fix Tilera compilation
authorVictor Julien <victor@inliniac.net>
Wed, 14 Jan 2015 20:55:31 +0000 (21:55 +0100)
committerVictor Julien <victor@inliniac.net>
Wed, 14 Jan 2015 20:55:31 +0000 (21:55 +0100)
Use proper initializer for a static mutex declaration.

Credits: Ken Steele

src/tm-threads.c

index 0246ec681b02df08d3cd36d1a48697bb00a91bce..1bce7526c9ba5c9b34408bfbb79bfbb5f0722629 100644 (file)
@@ -2113,7 +2113,7 @@ typedef struct Threads_ {
 } Threads;
 
 static Threads thread_store = { NULL, 0, 0 };
-static SCMutex thread_store_lock = PTHREAD_MUTEX_INITIALIZER;
+static SCMutex thread_store_lock = SCMUTEX_INITIALIZER;
 
 void TmThreadsListThreads(void)
 {