summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGreentime2010-12-17 11:44:32 +0800
committerDenys Vlasenko2010-12-18 01:45:14 +0100
commit10c36b86574133bb1cd29ad04db64c7953b94ab5 (patch)
tree0890974a72b682000d282c5476a9d1afc2669543
parenta3aea32811619e5ed80c2586a9206ad4ea941dfe (diff)
downloadbusybox-10c36b86574133bb1cd29ad04db64c7953b94ab5.zip
busybox-10c36b86574133bb1cd29ad04db64c7953b94ab5.tar.gz
scripts: fix fixdep.c to let it workable in cygwin
Update return character detection in the fixdep.c to let it workable 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++;