summaryrefslogtreecommitdiff
path: root/libc
diff options
context:
space:
mode:
authorBernhard Reutner-Fischer <rep.dot.nop@gmail.com>2010-06-11 20:15:56 +0200
committerBernhard Reutner-Fischer <rep.dot.nop@gmail.com>2010-06-11 20:15:56 +0200
commitbf705da4ac2df55e75026fd4bb4843c5bc7668fb (patch)
tree1b05d4f94a0e2fff0d000ddb926238df02948388 /libc
parentbe7bc0ba87633a1e5fc2f00358137d905126e787 (diff)
wordexp: silence warning
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Diffstat (limited to 'libc')
-rw-r--r--libc/misc/wordexp/wordexp.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/libc/misc/wordexp/wordexp.c b/libc/misc/wordexp/wordexp.c
index 2f529158c..4c25d2860 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)
{