aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/tokenize.c
diff options
Diffstat (limited to 'tokenize.c')
-rw-r--r--tokenize.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/tokenize.c b/tokenize.c
index 742997e0..180b523b 100644
--- a/tokenize.c
+++ b/tokenize.c
@@ -170,8 +170,8 @@ int init_stream(const char *name, int fd, const char **next_path)
for (i = 0; i < stream; i++) {
struct stream *s = input_streams + i;
- if (s->dev == st.st_dev && s->ino == st.st_ino &&
- s->constant == CONSTANT_FILE_YES &&
+ if (s->constant == CONSTANT_FILE_YES &&
+ identical_files(s, &st, name) &&
lookup_symbol(s->protect, NS_MACRO))
return -1;
}