summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMacpaul Lin <macpaul@andestech.com>2010-12-17 03:44:32 (GMT)
committer Denys Vlasenko <vda.linux@googlemail.com>2010-12-18 00:46:38 (GMT)
commitb2fa0b6219bc8f0e37ea68fc036857a4714fa175 (patch)
tree0890974a72b682000d282c5476a9d1afc2669543
parente06884208ad766c1107988741a0e102555c3c4fd (diff)
downloadbusybox-b2fa0b6219bc8f0e37ea68fc036857a4714fa175.tar.gz
busybox-b2fa0b6219bc8f0e37ea68fc036857a4714fa175.tar.bz2
scripts: fix fixdep.c to let it workable in cygwin
Update retrun character detection in the fixdep.c to let it work in cygwin. Signed-off-by: Macpaul Lin <macpaul@andestech.com> Signed-off-by: Greentime <green.hu@gmail.com> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
-rw-r--r--scripts/basic/fixdep.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/basic/fixdep.c b/scripts/basic/fixdep.c
index 1a5b10f..f27a179 100644
--- a/scripts/basic/fixdep.c
+++ b/scripts/basic/fixdep.c
@@ -329,7 +329,7 @@ void parse_dep_file(void *map, size_t len)
clear_config();
while (m < end) {
- while (m < end && (*m == ' ' || *m == '\\' || *m == '\n'))
+ while (m < end && (*m == ' ' || *m == '\\' || *m == '\n' || *m == '\r'))
m++;
p = m;
while (p < end && *p != ' ') p++;