[git commit master 1/1] wordexp: silence warning

Bernhard Reutner-Fischer rep.dot.nop at gmail.com
Fri Jun 11 18:23:09 UTC 2010


commit: http://git.uclibc.org/uClibc/commit/?id=bf705da4ac2df55e75026fd4bb4843c5bc7668fb
branch: http://git.uclibc.org/uClibc/commit/?id=refs/heads/master

Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop at gmail.com>
---
 libc/misc/wordexp/wordexp.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/libc/misc/wordexp/wordexp.c b/libc/misc/wordexp/wordexp.c
index 2f52915..4c25d28 100644
--- a/libc/misc/wordexp/wordexp.c
+++ b/libc/misc/wordexp/wordexp.c
@@ -98,8 +98,9 @@ static __inline__ char *w_addchar(char *buffer, size_t * actlen,
 
 	return buffer;
 }
-
+#ifndef MAX
 #define MAX( a, b ) ( ( ( a ) > ( b ) ) ? ( a ) : ( b ) )
+#endif
 static char *w_addmem(char *buffer, size_t * actlen, size_t * maxlen,
 					  const char *str, size_t len)
 {
-- 
1.7.1



More information about the uClibc-cvs mailing list