summaryrefslogtreecommitdiff
path: root/development/acpica/pthread_build_warning_fix.patch
blob: 675bc17e390a49a21cc38c82cf275b520fa93e62 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
diff --git a/source/os_specific/service_layers/osunixxf.c b/source/os_specific/service_layers/osunixxf.c
index 1698139..fbe02b7 100644
--- a/source/os_specific/service_layers/osunixxf.c
+++ b/source/os_specific/service_layers/osunixxf.c
@@ -1243,8 +1243,10 @@ ACPI_THREAD_ID
 AcpiOsGetThreadId (
     void)
 {
+    pthread_t thread;
 
-    return (ACPI_CAST_PTHREAD_T (pthread_self()));
+    thread = pthread_self();
+    return (ACPI_CAST_PTHREAD_T (thread));
 }