summaryrefslogtreecommitdiff
path: root/development/acpica/pthread_build_warning_fix.patch
diff options
context:
space:
mode:
Diffstat (limited to 'development/acpica/pthread_build_warning_fix.patch')
-rw-r--r--development/acpica/pthread_build_warning_fix.patch16
1 files changed, 16 insertions, 0 deletions
diff --git a/development/acpica/pthread_build_warning_fix.patch b/development/acpica/pthread_build_warning_fix.patch
new file mode 100644
index 0000000000..675bc17e39
--- /dev/null
+++ b/development/acpica/pthread_build_warning_fix.patch
@@ -0,0 +1,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));
+ }
+
+