diff --git a/libcxx/src/filesystem/filesystem_common.h b/libcxx/src/filesystem/filesystem_common.h index a7828ef38632..dc55f93da70c 100644 --- a/libcxx/src/filesystem/filesystem_common.h +++ b/libcxx/src/filesystem/filesystem_common.h @@ -198,7 +198,7 @@ private: using chrono::duration; using chrono::duration_cast; -using TimeSpec = std::timespec; +using TimeSpec = timespec; using StatT = struct stat; template ; diff --git a/libcxx/test/std/utilities/meta/meta.trans/meta.trans.other/result_of11.pass.cpp b/libcxx/test/std/utilities/meta/meta.trans/meta.trans.other/result_of11.pass.cpp index 35abfa9cbeae..c9123fe18881 100644 --- a/libcxx/test/std/utilities/meta/meta.trans/meta.trans.other/result_of11.pass.cpp +++ b/libcxx/test/std/utilities/meta/meta.trans/meta.trans.other/result_of11.pass.cpp @@ -19,8 +19,8 @@ // Ignore warnings about volatile in parameters being deprecated. // We know it is, but we still have to test it. -#ifdef __GNUC__ -#pragma GCC diagnostic ignored "-Wvolatile" +#if defined(__GNUC__) && !defined(__clang__) +# pragma GCC diagnostic ignored "-Wvolatile" #endif struct wat