Browse Source

Fix macOS glib arm64 patch

Signed-off-by: falkTX <falktx@falktx.com>
test-github-breakage
falkTX 1 year ago
parent
commit
adf8b2ad47
Signed by: falkTX <falktx@falktx.com> GPG Key ID: CDBAA37ABC74FBA0
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      patches/glib/macos/02_aarch64-atomic-as-mutex.patch

+ 2
- 2
patches/glib/macos/02_aarch64-atomic-as-mutex.patch View File

@@ -49,7 +49,7 @@
- return result;
+ pthread_mutex_lock (&g_atomic_lock);
+ oldval = *atomic;
+ *atomic = oldval & val;
+ *atomic = oldval + val;
+ pthread_mutex_unlock (&g_atomic_lock);
+
+ return oldval;
@@ -66,7 +66,7 @@
+
+ pthread_mutex_lock (&g_atomic_lock);
+ oldval = *atomic;
+ *atomic = oldval & val;
+ *atomic = oldval + val;
+ pthread_mutex_unlock (&g_atomic_lock);
}


Loading…
Cancel
Save