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>
This commit is contained in:
Greentime 2010-12-17 11:44:32 +08:00 committed by Denys Vlasenko
parent a3aea32811
commit 10c36b8657

View File

@ -329,7 +329,7 @@ void parse_dep_file(void *map, size_t len)
clear_config(); clear_config();
while (m < end) { while (m < end) {
while (m < end && (*m == ' ' || *m == '\\' || *m == '\n')) while (m < end && (*m == ' ' || *m == '\\' || *m == '\n' || *m == '\r'))
m++; m++;
p = m; p = m;
while (p < end && *p != ' ') p++; while (p < end && *p != ' ') p++;