diff options
author | 2025-03-04 13:24:49 -0500 | |
---|---|---|
committer | 2025-03-06 05:19:56 -0800 | |
commit | 6ffde7f20f7f5e90566be0550b52cab7d1f7ab13 (patch) | |
tree | 3443ed0d015eaf05ce0cf293cd0f00e15fc6e326 | |
parent | 568ccec2e71d2a2af3601f16753d9b8dbb3a1587 (diff) |
Fix C++23 build.
C++23's unique_ptr is better at catching incomplete definitions, such as
here.
Change-Id: I80dd271c64c5b5e60156a809cd1685a5c3b3c18c
-rw-r--r-- | libartbase/base/os.h | 4 | ||||
-rw-r--r-- | runtime/trace.h | 5 |
2 files changed, 2 insertions, 7 deletions
diff --git a/libartbase/base/os.h b/libartbase/base/os.h index 7880937949..a10455d051 100644 --- a/libartbase/base/os.h +++ b/libartbase/base/os.h @@ -24,9 +24,7 @@ #include <memory> #include <string> -namespace unix_file { -class FdFile; -} // namespace unix_file +#include "unix_file/fd_file.h" namespace art { diff --git a/runtime/trace.h b/runtime/trace.h index 952c996d63..ca728e93f9 100644 --- a/runtime/trace.h +++ b/runtime/trace.h @@ -32,15 +32,12 @@ #include "base/mutex.h" #include "base/os.h" #include "base/safe_map.h" +#include "base/unix_file/fd_file.h" #include "class_linker.h" #include "instrumentation.h" #include "runtime_globals.h" #include "thread_pool.h" -namespace unix_file { -class FdFile; -} // namespace unix_file - namespace art HIDDEN { class ArtField; |