-
-
Notifications
You must be signed in to change notification settings - Fork 3.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
busybox: fix segfault on some applets
- Loading branch information
Showing
2 changed files
with
16 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
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())" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters