libdispatch: fix build with ndk r22
Patch from @buttaface. This commit is responsible: https://github.com/aosp-mirror/platform_bionic/commit/76e2b15
This commit is contained in:
parent
aeaaa37637
commit
cdbcc399e4
|
@ -4,6 +4,7 @@ TERMUX_PKG_LICENSE="Apache-2.0"
|
||||||
TERMUX_PKG_MAINTAINER="@buttaface"
|
TERMUX_PKG_MAINTAINER="@buttaface"
|
||||||
_VERSION=5.3.3
|
_VERSION=5.3.3
|
||||||
TERMUX_PKG_VERSION=1:${_VERSION}
|
TERMUX_PKG_VERSION=1:${_VERSION}
|
||||||
|
TERMUX_PKG_REVISION=1
|
||||||
TERMUX_PKG_SRCURL=https://github.com/apple/swift-corelibs-libdispatch/archive/swift-${_VERSION}-RELEASE.tar.gz
|
TERMUX_PKG_SRCURL=https://github.com/apple/swift-corelibs-libdispatch/archive/swift-${_VERSION}-RELEASE.tar.gz
|
||||||
TERMUX_PKG_SHA256=84a482afefdcda26c7dc83e3b75e662ed7705786a34a6b4958c0cdc6cace2c46
|
TERMUX_PKG_SHA256=84a482afefdcda26c7dc83e3b75e662ed7705786a34a6b4958c0cdc6cace2c46
|
||||||
TERMUX_PKG_DEPENDS="libc++, libblocksruntime"
|
TERMUX_PKG_DEPENDS="libc++, libblocksruntime"
|
||||||
|
|
|
@ -0,0 +1,15 @@
|
||||||
|
https://github.com/aosp-mirror/platform_bionic/commit/76e2b15
|
||||||
|
|
||||||
|
diff --git a/src/shims/atomic.h b/src/shims/atomic.h
|
||||||
|
index c002e72..33ad5fe 100644
|
||||||
|
--- a/src/shims/atomic.h
|
||||||
|
+++ b/src/shims/atomic.h
|
||||||
|
@@ -35,7 +35,7 @@
|
||||||
|
#if defined(__cplusplus)
|
||||||
|
#define _Bool bool
|
||||||
|
#endif
|
||||||
|
-#include <stdatomic.h>
|
||||||
|
+#include <bits/stdatomic.h>
|
||||||
|
|
||||||
|
#define memory_order_ordered memory_order_seq_cst
|
||||||
|
#define memory_order_dependency memory_order_acquire
|
Loading…
Reference in New Issue