Applied patch from Andreas Neuhaus to fix namespace conflict that made busybox
authorMark Whitley <markw@lineo.com>
Thu, 15 Mar 2001 19:12:06 +0000 (19:12 -0000)
committerMark Whitley <markw@lineo.com>
Thu, 15 Mar 2001 19:12:06 +0000 (19:12 -0000)
not compile with uClibc.

lash.c
sh.c
shell/lash.c

diff --git a/lash.c b/lash.c
index a3003abeae6d9e4c06047e7d4c28661d28490703..bb833ea2fec6c3906904b17680a4a19d6328a23a 100644 (file)
--- a/lash.c
+++ b/lash.c
 #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/sh.c b/sh.c
index a3003abeae6d9e4c06047e7d4c28661d28490703..bb833ea2fec6c3906904b17680a4a19d6328a23a 100644 (file)
--- a/sh.c
+++ b/sh.c
 #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
index a3003abeae6d9e4c06047e7d4c28661d28490703..bb833ea2fec6c3906904b17680a4a19d6328a23a 100644 (file)
 #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