From 0b57e28373550f7657bd4e026ae482806139885f Mon Sep 17 00:00:00 2001
From: Mark Whitley <markw@lineo.com>
Date: Thu, 15 Mar 2001 19:12:06 +0000
Subject: Applied patch from Andreas Neuhaus to fix namespace conflict that
 made busybox not compile with uClibc.

---
 sh.c | 5 +++++
 1 file changed, 5 insertions(+)

(limited to 'sh.c')

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
-- 
cgit v1.2.3-55-g6feb