summaryrefslogtreecommitdiff
path: root/src/filesystem/directory_iterator.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/filesystem/directory_iterator.cpp')
-rw-r--r--src/filesystem/directory_iterator.cpp10
1 files changed, 6 insertions, 4 deletions
diff --git a/src/filesystem/directory_iterator.cpp b/src/filesystem/directory_iterator.cpp
index f0d807a03db6..ca88dee06402 100644
--- a/src/filesystem/directory_iterator.cpp
+++ b/src/filesystem/directory_iterator.cpp
@@ -1,9 +1,8 @@
//===------------------ directory_iterator.cpp ----------------------------===//
//
-// The LLVM Compiler Infrastructure
-//
-// This file is dual licensed under the MIT and the University of Illinois Open
-// Source Licenses. See LICENSE.TXT for details.
+// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
+// See https://llvm.org/LICENSE.txt for license information.
+// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
//
//===----------------------------------------------------------------------===//
@@ -25,6 +24,8 @@ namespace detail {
namespace {
#if !defined(_LIBCPP_WIN32API)
+
+#if defined(DT_BLK)
template <class DirEntT, class = decltype(DirEntT::d_type)>
static file_type get_file_type(DirEntT* ent, int) {
switch (ent->d_type) {
@@ -50,6 +51,7 @@ static file_type get_file_type(DirEntT* ent, int) {
}
return file_type::none;
}
+#endif // defined(DT_BLK)
template <class DirEntT>
static file_type get_file_type(DirEntT* ent, long) {