diff options
-rw-r--r-- | lash.c | 5 | ||||
-rw-r--r-- | sh.c | 5 | ||||
-rw-r--r-- | shell/lash.c | 5 |
3 files changed, 15 insertions, 0 deletions
@@ -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 @@ -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 diff --git a/shell/lash.c b/shell/lash.c index a3003abea..bb833ea2f 100644 --- a/shell/lash.c +++ b/shell/lash.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 |