aboutsummaryrefslogtreecommitdiff
path: root/sh.c
diff options
context:
space:
mode:
Diffstat (limited to 'sh.c')
-rw-r--r--sh.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/sh.c b/sh.c
index a3003abea..bb833ea2f 100644
--- a/sh.c
+++ b/sh.c
@@ -65,6 +65,11 @@
#include <unistd.h>
#include <getopt.h>
+// fix compile with uClibc (which does #define index strchr) -andy
+#ifdef index
+#undef index
+#endif
+
#undef BB_FEATURE_SH_WORDEXP
#if BB_FEATURE_SH_WORDEXP