diff options
Diffstat (limited to 'src/depend')
-rw-r--r-- | src/depend/depend.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/depend/depend.cpp b/src/depend/depend.cpp index 76c186265..5f95ffc42 100644 --- a/src/depend/depend.cpp +++ b/src/depend/depend.cpp @@ -507,6 +507,9 @@ private: */ const char *GeneratePath(const char *dirname, const char *filename, bool local) { + /* Ignore C++ standard library headers. */ + if (strchr(filename, '.') == nullptr) return nullptr; + if (local) { if (access(filename, R_OK) == 0) return strdup(filename); |