0
0
mirror of https://github.com/termux/termux-packages.git synced 2024-12-04 18:45:52 +00:00
termux-packages/packages/busybox/0014-fix-segfault.patch
2024-10-01 18:12:24 +08:00

16 lines
360 B
Diff

https://github.com/termux/termux-packages/issues/21522
--- a/include/libbb.h
+++ b/include/libbb.h
@@ -382,6 +382,10 @@
#ifndef BB_GLOBAL_CONST
# define BB_GLOBAL_CONST const
#endif
+#ifdef __clang__
+# undef BB_GLOBAL_CONST
+# define BB_GLOBAL_CONST
+#endif
#if defined(errno)
/* If errno is a define, assume it's "define errno (*__errno_location())"