diff options
author | Linus Torvalds <torvalds@home.transmeta.com> | 2003-05-16 18:33:26 -0700 |
---|---|---|
committer | Linus Torvalds <torvalds@ppc970.osdl.org> | 2005-04-07 21:00:40 -0700 |
commit | 143649c4678106e5cc95db5c70c64c6393ad08cf (patch) | |
tree | fad4856d5470208c3c239f0d47aaf0a1092059f6 /pre-process.c | |
parent | ad845930e3c3f5ad0ccecf019827accb81f794a7 (diff) | |
download | sparse-dev-143649c4678106e5cc95db5c70c64c6393ad08cf.tar.gz |
Add current directory to search path.
Diffstat (limited to 'pre-process.c')
-rw-r--r-- | pre-process.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/pre-process.c b/pre-process.c index 86406c5b..ccdce5cc 100644 --- a/pre-process.c +++ b/pre-process.c @@ -553,6 +553,10 @@ static void do_include(struct stream *stream, struct token *head, struct token * return; } + /* Check current directory */ + if (try_include("", 0, filename, flen, head)) + return; + error(token->pos, "unable to open '%s'", filename); } |