Condition for definition of LastIdent must match condition for its use
authorStephan Bergmann <sbergman@redhat.com>
Mon, 4 Dec 2017 20:33:35 +0000 (21:33 +0100)
committerPeter Michael Green <plugwash@raspbian.org>
Fri, 27 Apr 2018 02:14:18 +0000 (03:14 +0100)
Condition for definition of LastIdent must match condition for its use

Change-Id: Iccc58d396d8c80a717e9d33ed8d872aadea08afa

Gbp-Pq: Name sal-fix-kfreebsd-build.diff

sal/osl/unx/thread.cxx

index 639e8b6cec2637c8e18739c86e175e156a68922d..affbc5c3fb9cda1bf0d0d29a525ad6c175dcda8e 100644 (file)
@@ -567,7 +567,7 @@ static int HashSize = SAL_N_ELEMENTS(HashTable);
 
 static pthread_mutex_t HashLock = PTHREAD_MUTEX_INITIALIZER;
 
-#if ! (defined LINUX || defined MACOSX || defined IOS)
+#if ! ((defined LINUX && !defined __FreeBSD_kernel__) || defined MACOSX || defined IOS)
 static oslThreadIdentifier LastIdent = 0;
 #endif