From 47fdbdd324261dcb6c8cc4e4d7b13fc14ff06311 Mon Sep 17 00:00:00 2001 From: glx22 Date: Fri, 10 May 2019 14:22:07 +0200 Subject: Fix: ignore C++ standard library headers in depend (#7578) --- src/depend/depend.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/depend') 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); -- cgit v1.2.3-70-g09d2