Files
termux-packages/packages/boost/fix-aligned-alloc-detection.patch
termux-pacman-bot 7ee4841a3f bump(main/boost): 1.90.0
- `fix-aligned-alloc-detection.patch` fixes a preprocessor conditional mistake introduced in 8b80ad7f24

- Revision-bump all reverse dependencies in the `packages` folder
2026-01-07 11:06:49 +00:00

18 lines
728 B
Diff

Fixes:
/data/data/com.termux/files/usr/include/boost/asio/detail/memory.hpp:107:20:
error: reference to unresolved using declaration
107 | void* ptr = std::aligned_alloc(align, size);
in reverse dependency botan3
--- a/boost/asio/detail/config.hpp
+++ b/boost/asio/detail/config.hpp
@@ -377,7 +377,7 @@
# if defined(__FreeBSD__) || defined(__Fuchsia__) || defined(__wasi__) \
|| defined(__NetBSD__) || defined(__OpenBSD__)
# define BOOST_ASIO_HAS_STD_ALIGNED_ALLOC 1
-# elif defined(__linux__)
+# elif defined(__linux__) && !defined(__ANDROID__)
# if defined(_LIBCPP_HAS_MUSL_LIBC)
# define BOOST_ASIO_HAS_STD_ALIGNED_ALLOC 1
# else // !defined(_LIBCPP_HAS_MUSL_LIBC)