From 261b99639c4ab7c53058a3a1a5906e566a5c5210 Mon Sep 17 00:00:00 2001 From: "Jay Freeman (saurik)" Date: Mon, 28 Sep 2015 02:48:10 -0700 Subject: Avoid dirent::d_namlen (not there on Linux glibc). --- ldid.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ldid.cpp b/ldid.cpp index 21eb77d..ffc2821 100644 --- a/ldid.cpp +++ b/ldid.cpp @@ -1572,7 +1572,7 @@ void DiskFolder::Find(const std::string &root, const std::string &base, const Fu _scope({ _syscall(closedir(dir)); }); while (auto child = readdir(dir)) { - std::string name(child->d_name, child->d_namlen); + std::string name(child->d_name); if (name == "." || name == "..") continue; if (Starts(name, ".ldid.")) -- cgit v1.2.3-56-ge451